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

avconv.c:3028:1: start of procedure find_codec_or_die()
3026. }
3027. 
3028. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
3029. {
3030.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:3030:32: Condition is true
3028. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3029. {
3030.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
3031.     AVCodec *codec;
3032. 

avconv.c:3030:5: 
3028. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3029. {
3030.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3031.     AVCodec *codec;
3032. 

avconv.c:3033:13: Condition is true
3031.     AVCodec *codec;
3032. 
3033.     codec = encoder ?
                  ^
3034.         avcodec_find_encoder_by_name(name) :
3035.         avcodec_find_decoder_by_name(name);

avconv.c:3033:5: 
3031.     AVCodec *codec;
3032. 
3033.     codec = encoder ?
          ^
3034.         avcodec_find_encoder_by_name(name) :
3035.         avcodec_find_decoder_by_name(name);

avconv.c:3036:9: Taking true branch
3034.         avcodec_find_encoder_by_name(name) :
3035.         avcodec_find_decoder_by_name(name);
3036.     if(!codec) {
              ^
3037.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3038.         exit_program(1);

avconv.c:3037:9: Skipping av_log(): empty list of specs
3035.         avcodec_find_decoder_by_name(name);
3036.     if(!codec) {
3037.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
3038.         exit_program(1);
3039.     }

avconv.c:3038:9: Skipping exit_program(): empty list of specs
3036.     if(!codec) {
3037.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3038.         exit_program(1);
              ^
3039.     }
3040.     if(codec->type != type) {

avconv.c:3040:8: 
3038.         exit_program(1);
3039.     }
3040.     if(codec->type != type) {
             ^
3041.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
3042.         exit_program(1);
