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

avconv.c:2797:1: start of procedure find_codec_or_die()
2795. }
2796. 
2797. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2798. {
2799.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2799:32: Condition is true
2797. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2798. {
2799.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2800.     AVCodec *codec;
2801. 

avconv.c:2799:5: 
2797. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2798. {
2799.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2800.     AVCodec *codec;
2801. 

avconv.c:2802:13: Condition is true
2800.     AVCodec *codec;
2801. 
2802.     codec = encoder ?
                  ^
2803.         avcodec_find_encoder_by_name(name) :
2804.         avcodec_find_decoder_by_name(name);

avconv.c:2802:5: 
2800.     AVCodec *codec;
2801. 
2802.     codec = encoder ?
          ^
2803.         avcodec_find_encoder_by_name(name) :
2804.         avcodec_find_decoder_by_name(name);

avconv.c:2805:9: Taking true branch
2803.         avcodec_find_encoder_by_name(name) :
2804.         avcodec_find_decoder_by_name(name);
2805.     if(!codec) {
              ^
2806.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2807.         exit_program(1);

avconv.c:2806:9: Skipping av_log(): empty list of specs
2804.         avcodec_find_decoder_by_name(name);
2805.     if(!codec) {
2806.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
2807.         exit_program(1);
2808.     }

avconv.c:2807:9: Skipping exit_program(): empty list of specs
2805.     if(!codec) {
2806.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2807.         exit_program(1);
              ^
2808.     }
2809.     if(codec->type != type) {

avconv.c:2809:8: 
2807.         exit_program(1);
2808.     }
2809.     if(codec->type != type) {
             ^
2810.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
2811.         exit_program(1);
