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

avconv.c:3076:1: start of procedure find_codec_or_die()
3074. }
3075. 
3076. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
3077. {
3078.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:3078:32: Condition is false
3076. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3077. {
3078.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
3079.     AVCodec *codec;
3080. 

avconv.c:3078:5: 
3076. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
3077. {
3078.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3079.     AVCodec *codec;
3080. 

avconv.c:3081:13: Condition is false
3079.     AVCodec *codec;
3080. 
3081.     codec = encoder ?
                  ^
3082.         avcodec_find_encoder_by_name(name) :
3083.         avcodec_find_decoder_by_name(name);

avconv.c:3081:5: 
3079.     AVCodec *codec;
3080. 
3081.     codec = encoder ?
          ^
3082.         avcodec_find_encoder_by_name(name) :
3083.         avcodec_find_decoder_by_name(name);

avconv.c:3084:10: Taking true branch
3082.         avcodec_find_encoder_by_name(name) :
3083.         avcodec_find_decoder_by_name(name);
3084.     if (!codec) {
               ^
3085.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3086.         exit_program(1);

avconv.c:3085:9: Skipping av_log(): empty list of specs
3083.         avcodec_find_decoder_by_name(name);
3084.     if (!codec) {
3085.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
3086.         exit_program(1);
3087.     }

avconv.c:3086:9: Skipping exit_program(): empty list of specs
3084.     if (!codec) {
3085.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
3086.         exit_program(1);
              ^
3087.     }
3088.     if (codec->type != type) {

avconv.c:3088:9: 
3086.         exit_program(1);
3087.     }
3088.     if (codec->type != type) {
              ^
3089.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
3090.         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}']