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

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

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

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

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

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

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

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

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

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

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