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

ffmpeg.c:2899:1: start of procedure find_codec_or_die()
2897. }
2898. 
2899. static enum CodecID find_codec_or_die(const char *name, int type, int encoder)
      ^
2900. {
2901.     const char *codec_string = encoder ? "encoder" : "decoder";

ffmpeg.c:2901:32: Condition is false
2899. static enum CodecID find_codec_or_die(const char *name, int type, int encoder)
2900. {
2901.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2902.     AVCodec *codec;
2903. 

ffmpeg.c:2901:5: 
2899. static enum CodecID find_codec_or_die(const char *name, int type, int encoder)
2900. {
2901.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2902.     AVCodec *codec;
2903. 

ffmpeg.c:2904:9: Taking false branch
2902.     AVCodec *codec;
2903. 
2904.     if(!name)
              ^
2905.         return CODEC_ID_NONE;
2906.     codec = encoder ?

ffmpeg.c:2906:13: Condition is false
2904.     if(!name)
2905.         return CODEC_ID_NONE;
2906.     codec = encoder ?
                  ^
2907.         avcodec_find_encoder_by_name(name) :
2908.         avcodec_find_decoder_by_name(name);

ffmpeg.c:2906:5: 
2904.     if(!name)
2905.         return CODEC_ID_NONE;
2906.     codec = encoder ?
          ^
2907.         avcodec_find_encoder_by_name(name) :
2908.         avcodec_find_decoder_by_name(name);

ffmpeg.c:2909:9: Taking true branch
2907.         avcodec_find_encoder_by_name(name) :
2908.         avcodec_find_decoder_by_name(name);
2909.     if(!codec) {
              ^
2910.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
2911.         av_exit(1);

ffmpeg.c:2910:9: 
2908.         avcodec_find_decoder_by_name(name);
2909.     if(!codec) {
2910.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
              ^
2911.         av_exit(1);
2912.     }

ffmpeg.c:2911:9: Skipping av_exit(): empty list of specs
2909.     if(!codec) {
2910.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
2911.         av_exit(1);
              ^
2912.     }
2913.     if(codec->type != type) {

ffmpeg.c:2913:8: 
2911.         av_exit(1);
2912.     }
2913.     if(codec->type != type) {
             ^
2914.         fprintf(stderr, "Invalid %s type '%s'\n", codec_string, name);
2915.         av_exit(1);
