avconv.c:2699: error: Null Dereference
  pointer `codec` last assigned on line 2692 could be null and is dereferenced at line 2699, column 8.

avconv.c:2685:1: start of procedure find_codec_or_die()
2683. }
2684. 
2685. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2686. {
2687.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2687:32: Condition is true
2685. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2686. {
2687.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2688.     AVCodec *codec;
2689. 

avconv.c:2687:5: 
2685. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2686. {
2687.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2688.     AVCodec *codec;
2689. 

avconv.c:2690:9: Taking false branch
2688.     AVCodec *codec;
2689. 
2690.     if(!name)
              ^
2691.         return CODEC_ID_NONE;
2692.     codec = encoder ?

avconv.c:2692:13: Condition is true
2690.     if(!name)
2691.         return CODEC_ID_NONE;
2692.     codec = encoder ?
                  ^
2693.         avcodec_find_encoder_by_name(name) :
2694.         avcodec_find_decoder_by_name(name);

avconv.c:2692:5: 
2690.     if(!name)
2691.         return CODEC_ID_NONE;
2692.     codec = encoder ?
          ^
2693.         avcodec_find_encoder_by_name(name) :
2694.         avcodec_find_decoder_by_name(name);

avconv.c:2695:9: Taking true branch
2693.         avcodec_find_encoder_by_name(name) :
2694.         avcodec_find_decoder_by_name(name);
2695.     if(!codec) {
              ^
2696.         av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
2697.         exit_program(1);

avconv.c:2696:9: Skipping av_log(): empty list of specs
2694.         avcodec_find_decoder_by_name(name);
2695.     if(!codec) {
2696.         av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
              ^
2697.         exit_program(1);
2698.     }

avconv.c:2697:9: Skipping exit_program(): empty list of specs
2695.     if(!codec) {
2696.         av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
2697.         exit_program(1);
              ^
2698.     }
2699.     if(codec->type != type) {

avconv.c:2699:8: 
2697.         exit_program(1);
2698.     }
2699.     if(codec->type != type) {
             ^
2700.         av_log(NULL, AV_LOG_ERROR, "Invalid %s type '%s'\n", codec_string, name);
2701.         exit_program(1);
