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

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

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

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

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

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

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

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

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

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

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