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

avconv.c:3047:1: start of procedure find_codec_or_die()
3045. }
3046. 
3047. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
3048. {
3049.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:3049:32: Condition is true
3047. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3048. {
3049.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
3050.     AVCodec *codec;
3051. 

avconv.c:3049:5: 
3047. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3048. {
3049.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3050.     AVCodec *codec;
3051. 

avconv.c:3052:13: Condition is true
3050.     AVCodec *codec;
3051. 
3052.     codec = encoder ?
                  ^
3053.         avcodec_find_encoder_by_name(name) :
3054.         avcodec_find_decoder_by_name(name);

avconv.c:3052:5: 
3050.     AVCodec *codec;
3051. 
3052.     codec = encoder ?
          ^
3053.         avcodec_find_encoder_by_name(name) :
3054.         avcodec_find_decoder_by_name(name);

avconv.c:3055:10: Taking true branch
3053.         avcodec_find_encoder_by_name(name) :
3054.         avcodec_find_decoder_by_name(name);
3055.     if (!codec) {
               ^
3056.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3057.         exit_program(1);

avconv.c:3056:9: Skipping av_log(): empty list of specs
3054.         avcodec_find_decoder_by_name(name);
3055.     if (!codec) {
3056.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
3057.         exit_program(1);
3058.     }

avconv.c:3057:9: Skipping exit_program(): empty list of specs
3055.     if (!codec) {
3056.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3057.         exit_program(1);
              ^
3058.     }
3059.     if (codec->type != type) {

avconv.c:3059:9: 
3057.         exit_program(1);
3058.     }
3059.     if (codec->type != type) {
              ^
3060.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
3061.         exit_program(1);
