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

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

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

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

avconv.c:2757:13: Condition is true
2755.     AVCodec *codec;
2756. 
2757.     codec = encoder ?
                  ^
2758.         avcodec_find_encoder_by_name(name) :
2759.         avcodec_find_decoder_by_name(name);

avconv.c:2757:5: 
2755.     AVCodec *codec;
2756. 
2757.     codec = encoder ?
          ^
2758.         avcodec_find_encoder_by_name(name) :
2759.         avcodec_find_decoder_by_name(name);

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

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

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

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