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

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

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

ffmpeg.c:3086:5: 
3084. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
3085. {
3086.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3087.     AVCodec *codec;
3088. 

ffmpeg.c:3089:9: Taking false branch
3087.     AVCodec *codec;
3088. 
3089.     if(!name)
              ^
3090.         return CODEC_ID_NONE;
3091.     codec = encoder ?

ffmpeg.c:3091:13: Condition is true
3089.     if(!name)
3090.         return CODEC_ID_NONE;
3091.     codec = encoder ?
                  ^
3092.         avcodec_find_encoder_by_name(name) :
3093.         avcodec_find_decoder_by_name(name);

ffmpeg.c:3091:5: 
3089.     if(!name)
3090.         return CODEC_ID_NONE;
3091.     codec = encoder ?
          ^
3092.         avcodec_find_encoder_by_name(name) :
3093.         avcodec_find_decoder_by_name(name);

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

ffmpeg.c:3095:9: 
3093.         avcodec_find_decoder_by_name(name);
3094.     if(!codec) {
3095.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
              ^
3096.         ffmpeg_exit(1);
3097.     }

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

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