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

avconv.c:2864:1: start of procedure find_codec_or_die()
2862. }
2863. 
2864. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2865. {
2866.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2866:32: Condition is true
2864. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2865. {
2866.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2867.     AVCodec *codec;
2868. 

avconv.c:2866:5: 
2864. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2865. {
2866.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2867.     AVCodec *codec;
2868. 

avconv.c:2869:13: Condition is true
2867.     AVCodec *codec;
2868. 
2869.     codec = encoder ?
                  ^
2870.         avcodec_find_encoder_by_name(name) :
2871.         avcodec_find_decoder_by_name(name);

avconv.c:2869:5: 
2867.     AVCodec *codec;
2868. 
2869.     codec = encoder ?
          ^
2870.         avcodec_find_encoder_by_name(name) :
2871.         avcodec_find_decoder_by_name(name);

avconv.c:2872:9: Taking true branch
2870.         avcodec_find_encoder_by_name(name) :
2871.         avcodec_find_decoder_by_name(name);
2872.     if(!codec) {
              ^
2873.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2874.         exit_program(1);

avconv.c:2873:9: Skipping av_log(): empty list of specs
2871.         avcodec_find_decoder_by_name(name);
2872.     if(!codec) {
2873.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
2874.         exit_program(1);
2875.     }

avconv.c:2874:9: Skipping exit_program(): empty list of specs
2872.     if(!codec) {
2873.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2874.         exit_program(1);
              ^
2875.     }
2876.     if(codec->type != type) {

avconv.c:2876:8: 
2874.         exit_program(1);
2875.     }
2876.     if(codec->type != type) {
             ^
2877.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
2878.         exit_program(1);
