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

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

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

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

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

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

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

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

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

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

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