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

avconv.c:2750:1: start of procedure find_codec_or_die()
2748. }
2749. 
2750. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2751. {
2752.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2752:32: Condition is false
2750. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2751. {
2752.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2753.     AVCodec *codec;
2754. 

avconv.c:2752:5: 
2750. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2751. {
2752.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2753.     AVCodec *codec;
2754. 

avconv.c:2755:13: Condition is false
2753.     AVCodec *codec;
2754. 
2755.     codec = encoder ?
                  ^
2756.         avcodec_find_encoder_by_name(name) :
2757.         avcodec_find_decoder_by_name(name);

avconv.c:2755:5: 
2753.     AVCodec *codec;
2754. 
2755.     codec = encoder ?
          ^
2756.         avcodec_find_encoder_by_name(name) :
2757.         avcodec_find_decoder_by_name(name);

avconv.c:2758:9: Taking true branch
2756.         avcodec_find_encoder_by_name(name) :
2757.         avcodec_find_decoder_by_name(name);
2758.     if(!codec) {
              ^
2759.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2760.         exit_program(1);

avconv.c:2759:9: Skipping av_log(): empty list of specs
2757.         avcodec_find_decoder_by_name(name);
2758.     if(!codec) {
2759.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
2760.         exit_program(1);
2761.     }

avconv.c:2760:9: Skipping exit_program(): empty list of specs
2758.     if(!codec) {
2759.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2760.         exit_program(1);
              ^
2761.     }
2762.     if(codec->type != type) {

avconv.c:2762:8: 
2760.         exit_program(1);
2761.     }
2762.     if(codec->type != type) {
             ^
2763.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
2764.         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}']