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

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

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

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

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

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

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

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

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

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