avconv.c:3049: error: Null Dereference
  pointer `codec` last assigned on line 3042 could be null and is dereferenced at line 3049, column 9.

avconv.c:3037:1: start of procedure find_codec_or_die()
3035. }
3036. 
3037. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
3038. {
3039.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:3039:32: Condition is true
3037. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3038. {
3039.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
3040.     AVCodec *codec;
3041. 

avconv.c:3039:5: 
3037. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3038. {
3039.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3040.     AVCodec *codec;
3041. 

avconv.c:3042:13: Condition is true
3040.     AVCodec *codec;
3041. 
3042.     codec = encoder ?
                  ^
3043.         avcodec_find_encoder_by_name(name) :
3044.         avcodec_find_decoder_by_name(name);

avconv.c:3042:5: 
3040.     AVCodec *codec;
3041. 
3042.     codec = encoder ?
          ^
3043.         avcodec_find_encoder_by_name(name) :
3044.         avcodec_find_decoder_by_name(name);

avconv.c:3045:10: Taking true branch
3043.         avcodec_find_encoder_by_name(name) :
3044.         avcodec_find_decoder_by_name(name);
3045.     if (!codec) {
               ^
3046.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3047.         exit_program(1);

avconv.c:3046:9: Skipping av_log(): empty list of specs
3044.         avcodec_find_decoder_by_name(name);
3045.     if (!codec) {
3046.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
3047.         exit_program(1);
3048.     }

avconv.c:3047:9: Skipping exit_program(): empty list of specs
3045.     if (!codec) {
3046.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3047.         exit_program(1);
              ^
3048.     }
3049.     if (codec->type != type) {

avconv.c:3049:9: 
3047.         exit_program(1);
3048.     }
3049.     if (codec->type != type) {
              ^
3050.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
3051.         exit_program(1);
