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

ffmpeg.c:3070:1: start of procedure find_codec_or_die()
3068. }
3069. 
3070. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
      ^
3071. {
3072.     const char *codec_string = encoder ? "encoder" : "decoder";

ffmpeg.c:3072:32: Condition is true
3070. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
3071. {
3072.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
3073.     AVCodec *codec;
3074. 

ffmpeg.c:3072:5: 
3070. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
3071. {
3072.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3073.     AVCodec *codec;
3074. 

ffmpeg.c:3075:9: Taking false branch
3073.     AVCodec *codec;
3074. 
3075.     if(!name)
              ^
3076.         return CODEC_ID_NONE;
3077.     codec = encoder ?

ffmpeg.c:3077:13: Condition is true
3075.     if(!name)
3076.         return CODEC_ID_NONE;
3077.     codec = encoder ?
                  ^
3078.         avcodec_find_encoder_by_name(name) :
3079.         avcodec_find_decoder_by_name(name);

ffmpeg.c:3077:5: 
3075.     if(!name)
3076.         return CODEC_ID_NONE;
3077.     codec = encoder ?
          ^
3078.         avcodec_find_encoder_by_name(name) :
3079.         avcodec_find_decoder_by_name(name);

ffmpeg.c:3080:9: Taking true branch
3078.         avcodec_find_encoder_by_name(name) :
3079.         avcodec_find_decoder_by_name(name);
3080.     if(!codec) {
              ^
3081.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
3082.         ffmpeg_exit(1);

ffmpeg.c:3081:9: 
3079.         avcodec_find_decoder_by_name(name);
3080.     if(!codec) {
3081.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
              ^
3082.         ffmpeg_exit(1);
3083.     }

ffmpeg.c:3082:9: Skipping ffmpeg_exit(): empty list of specs
3080.     if(!codec) {
3081.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
3082.         ffmpeg_exit(1);
              ^
3083.     }
3084.     if(codec->type != type) {

ffmpeg.c:3084:8: 
3082.         ffmpeg_exit(1);
3083.     }
3084.     if(codec->type != type) {
             ^
3085.         fprintf(stderr, "Invalid %s type '%s'\n", codec_string, name);
3086.         ffmpeg_exit(1);
