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

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

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

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

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

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

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

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

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

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

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