ffmpeg.c:3102: error: Null Dereference
  pointer `codec` last assigned on line 3095 could be null and is dereferenced at line 3102, column 8.

ffmpeg.c:3088:1: start of procedure find_codec_or_die()
3086. }
3087. 
3088. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
      ^
3089. {
3090.     const char *codec_string = encoder ? "encoder" : "decoder";

ffmpeg.c:3090:32: Condition is true
3088. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
3089. {
3090.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
3091.     AVCodec *codec;
3092. 

ffmpeg.c:3090:5: 
3088. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
3089. {
3090.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3091.     AVCodec *codec;
3092. 

ffmpeg.c:3093:9: Taking false branch
3091.     AVCodec *codec;
3092. 
3093.     if(!name)
              ^
3094.         return CODEC_ID_NONE;
3095.     codec = encoder ?

ffmpeg.c:3095:13: Condition is true
3093.     if(!name)
3094.         return CODEC_ID_NONE;
3095.     codec = encoder ?
                  ^
3096.         avcodec_find_encoder_by_name(name) :
3097.         avcodec_find_decoder_by_name(name);

ffmpeg.c:3095:5: 
3093.     if(!name)
3094.         return CODEC_ID_NONE;
3095.     codec = encoder ?
          ^
3096.         avcodec_find_encoder_by_name(name) :
3097.         avcodec_find_decoder_by_name(name);

ffmpeg.c:3098:9: Taking true branch
3096.         avcodec_find_encoder_by_name(name) :
3097.         avcodec_find_decoder_by_name(name);
3098.     if(!codec) {
              ^
3099.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
3100.         ffmpeg_exit(1);

ffmpeg.c:3099:9: 
3097.         avcodec_find_decoder_by_name(name);
3098.     if(!codec) {
3099.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
              ^
3100.         ffmpeg_exit(1);
3101.     }

ffmpeg.c:3100:9: Skipping ffmpeg_exit(): empty list of specs
3098.     if(!codec) {
3099.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
3100.         ffmpeg_exit(1);
              ^
3101.     }
3102.     if(codec->type != type) {

ffmpeg.c:3102:8: 
3100.         ffmpeg_exit(1);
3101.     }
3102.     if(codec->type != type) {
             ^
3103.         fprintf(stderr, "Invalid %s type '%s'\n", codec_string, name);
3104.         ffmpeg_exit(1);
