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

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

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

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

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

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

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

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

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

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

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