avconv.c:2793: error: Null Dereference
  pointer `codec` last assigned on line 2786 could be null and is dereferenced at line 2793, column 8.

avconv.c:2779:1: start of procedure find_codec_or_die()
2777. }
2778. 
2779. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2780. {
2781.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2781:32: Condition is true
2779. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2780. {
2781.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2782.     AVCodec *codec;
2783. 

avconv.c:2781:5: 
2779. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2780. {
2781.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2782.     AVCodec *codec;
2783. 

avconv.c:2784:9: Taking false branch
2782.     AVCodec *codec;
2783. 
2784.     if(!name)
              ^
2785.         return CODEC_ID_NONE;
2786.     codec = encoder ?

avconv.c:2786:13: Condition is true
2784.     if(!name)
2785.         return CODEC_ID_NONE;
2786.     codec = encoder ?
                  ^
2787.         avcodec_find_encoder_by_name(name) :
2788.         avcodec_find_decoder_by_name(name);

avconv.c:2786:5: 
2784.     if(!name)
2785.         return CODEC_ID_NONE;
2786.     codec = encoder ?
          ^
2787.         avcodec_find_encoder_by_name(name) :
2788.         avcodec_find_decoder_by_name(name);

avconv.c:2789:9: Taking true branch
2787.         avcodec_find_encoder_by_name(name) :
2788.         avcodec_find_decoder_by_name(name);
2789.     if(!codec) {
              ^
2790.         av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
2791.         exit_program(1);

avconv.c:2790:9: Skipping av_log(): empty list of specs
2788.         avcodec_find_decoder_by_name(name);
2789.     if(!codec) {
2790.         av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
              ^
2791.         exit_program(1);
2792.     }

avconv.c:2791:9: Skipping exit_program(): empty list of specs
2789.     if(!codec) {
2790.         av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
2791.         exit_program(1);
              ^
2792.     }
2793.     if(codec->type != type) {

avconv.c:2793:8: 
2791.         exit_program(1);
2792.     }
2793.     if(codec->type != type) {
             ^
2794.         av_log(NULL, AV_LOG_ERROR, "Invalid %s type '%s'\n", codec_string, name);
2795.         exit_program(1);
