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

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

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

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

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

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

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

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

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

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

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