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

avconv.c:2749:1: start of procedure find_codec_or_die()
2747. }
2748. 
2749. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2750. {
2751.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2751:32: Condition is true
2749. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2750. {
2751.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2752.     AVCodec *codec;
2753. 

avconv.c:2751:5: 
2749. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2750. {
2751.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2752.     AVCodec *codec;
2753. 

avconv.c:2754:13: Condition is true
2752.     AVCodec *codec;
2753. 
2754.     codec = encoder ?
                  ^
2755.         avcodec_find_encoder_by_name(name) :
2756.         avcodec_find_decoder_by_name(name);

avconv.c:2754:5: 
2752.     AVCodec *codec;
2753. 
2754.     codec = encoder ?
          ^
2755.         avcodec_find_encoder_by_name(name) :
2756.         avcodec_find_decoder_by_name(name);

avconv.c:2757:9: Taking true branch
2755.         avcodec_find_encoder_by_name(name) :
2756.         avcodec_find_decoder_by_name(name);
2757.     if(!codec) {
              ^
2758.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2759.         exit_program(1);

avconv.c:2758:9: Skipping av_log(): empty list of specs
2756.         avcodec_find_decoder_by_name(name);
2757.     if(!codec) {
2758.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
2759.         exit_program(1);
2760.     }

avconv.c:2759:9: Skipping exit_program(): empty list of specs
2757.     if(!codec) {
2758.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2759.         exit_program(1);
              ^
2760.     }
2761.     if(codec->type != type) {

avconv.c:2761:8: 
2759.         exit_program(1);
2760.     }
2761.     if(codec->type != type) {
             ^
2762.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
2763.         exit_program(1);
