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

avconv.c:3052:1: start of procedure find_codec_or_die()
3050. }
3051. 
3052. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
3053. {
3054.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:3054:32: Condition is true
3052. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3053. {
3054.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
3055.     AVCodec *codec;
3056. 

avconv.c:3054:5: 
3052. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3053. {
3054.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3055.     AVCodec *codec;
3056. 

avconv.c:3057:13: Condition is true
3055.     AVCodec *codec;
3056. 
3057.     codec = encoder ?
                  ^
3058.         avcodec_find_encoder_by_name(name) :
3059.         avcodec_find_decoder_by_name(name);

avconv.c:3057:5: 
3055.     AVCodec *codec;
3056. 
3057.     codec = encoder ?
          ^
3058.         avcodec_find_encoder_by_name(name) :
3059.         avcodec_find_decoder_by_name(name);

avconv.c:3060:10: Taking true branch
3058.         avcodec_find_encoder_by_name(name) :
3059.         avcodec_find_decoder_by_name(name);
3060.     if (!codec) {
               ^
3061.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3062.         exit_program(1);

avconv.c:3061:9: Skipping av_log(): empty list of specs
3059.         avcodec_find_decoder_by_name(name);
3060.     if (!codec) {
3061.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
3062.         exit_program(1);
3063.     }

avconv.c:3062:9: Skipping exit_program(): empty list of specs
3060.     if (!codec) {
3061.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3062.         exit_program(1);
              ^
3063.     }
3064.     if (codec->type != type) {

avconv.c:3064:9: 
3062.         exit_program(1);
3063.     }
3064.     if (codec->type != type) {
              ^
3065.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
3066.         exit_program(1);

static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
{
    const char *codec_string = encoder ? "encoder" : "decoder";
    AVCodec *codec;
    codec = encoder ?
        avcodec_find_encoder_by_name(name) :
        avcodec_find_decoder_by_name(name);
    if (!codec) {
        av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
        exit_program(1);
    }
    if (codec->type != type) {
        av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
        exit_program(1);
    }
    return codec;
}
['static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)\n{\n    const char *codec_string = encoder ? "encoder" : "decoder";\n    AVCodec *codec;\n    codec = encoder ?\n        avcodec_find_encoder_by_name(name) :\n        avcodec_find_decoder_by_name(name);\n    if (!codec) {\n        av_log(NULL, AV_LOG_FATAL, "Unknown %s \'%s\'\\n", codec_string, name);\n        exit_program(1);\n    }\n    if (codec->type != type) {\n        av_log(NULL, AV_LOG_FATAL, "Invalid %s type \'%s\'\\n", codec_string, name);\n        exit_program(1);\n    }\n    return codec;\n}']