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

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

ffmpeg.c:3095:32: Condition is false
3093. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
3094. {
3095.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
3096.     AVCodec *codec;
3097. 

ffmpeg.c:3095:5: 
3093. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
3094. {
3095.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3096.     AVCodec *codec;
3097. 

ffmpeg.c:3098:9: Taking false branch
3096.     AVCodec *codec;
3097. 
3098.     if(!name)
              ^
3099.         return CODEC_ID_NONE;
3100.     codec = encoder ?

ffmpeg.c:3100:13: Condition is false
3098.     if(!name)
3099.         return CODEC_ID_NONE;
3100.     codec = encoder ?
                  ^
3101.         avcodec_find_encoder_by_name(name) :
3102.         avcodec_find_decoder_by_name(name);

ffmpeg.c:3100:5: 
3098.     if(!name)
3099.         return CODEC_ID_NONE;
3100.     codec = encoder ?
          ^
3101.         avcodec_find_encoder_by_name(name) :
3102.         avcodec_find_decoder_by_name(name);

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

ffmpeg.c:3104:9: 
3102.         avcodec_find_decoder_by_name(name);
3103.     if(!codec) {
3104.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
              ^
3105.         ffmpeg_exit(1);
3106.     }

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

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