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

ffmpeg.c:3076:1: start of procedure find_codec_or_die()
3074. }
3075. 
3076. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
      ^
3077. {
3078.     const char *codec_string = encoder ? "encoder" : "decoder";

ffmpeg.c:3078:32: Condition is false
3076. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
3077. {
3078.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
3079.     AVCodec *codec;
3080. 

ffmpeg.c:3078:5: 
3076. static enum CodecID find_codec_or_die(const char *name, int type, int encoder, int strict)
3077. {
3078.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
3079.     AVCodec *codec;
3080. 

ffmpeg.c:3081:9: Taking false branch
3079.     AVCodec *codec;
3080. 
3081.     if(!name)
              ^
3082.         return CODEC_ID_NONE;
3083.     codec = encoder ?

ffmpeg.c:3083:13: Condition is false
3081.     if(!name)
3082.         return CODEC_ID_NONE;
3083.     codec = encoder ?
                  ^
3084.         avcodec_find_encoder_by_name(name) :
3085.         avcodec_find_decoder_by_name(name);

ffmpeg.c:3083:5: 
3081.     if(!name)
3082.         return CODEC_ID_NONE;
3083.     codec = encoder ?
          ^
3084.         avcodec_find_encoder_by_name(name) :
3085.         avcodec_find_decoder_by_name(name);

ffmpeg.c:3086:9: Taking true branch
3084.         avcodec_find_encoder_by_name(name) :
3085.         avcodec_find_decoder_by_name(name);
3086.     if(!codec) {
              ^
3087.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
3088.         ffmpeg_exit(1);

ffmpeg.c:3087:9: 
3085.         avcodec_find_decoder_by_name(name);
3086.     if(!codec) {
3087.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
              ^
3088.         ffmpeg_exit(1);
3089.     }

ffmpeg.c:3088:9: Skipping ffmpeg_exit(): empty list of specs
3086.     if(!codec) {
3087.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
3088.         ffmpeg_exit(1);
              ^
3089.     }
3090.     if(codec->type != type) {

ffmpeg.c:3090:8: 
3088.         ffmpeg_exit(1);
3089.     }
3090.     if(codec->type != type) {
             ^
3091.         fprintf(stderr, "Invalid %s type '%s'\n", codec_string, name);
3092.         ffmpeg_exit(1);
