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

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

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

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

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

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

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

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

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

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

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