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

avconv.c:2673:1: start of procedure find_codec_or_die()
2671. }
2672. 
2673. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2674. {
2675.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2675:32: Condition is true
2673. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2674. {
2675.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2676.     AVCodec *codec;
2677. 

avconv.c:2675:5: 
2673. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2674. {
2675.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2676.     AVCodec *codec;
2677. 

avconv.c:2678:9: Taking false branch
2676.     AVCodec *codec;
2677. 
2678.     if(!name)
              ^
2679.         return CODEC_ID_NONE;
2680.     codec = encoder ?

avconv.c:2680:13: Condition is true
2678.     if(!name)
2679.         return CODEC_ID_NONE;
2680.     codec = encoder ?
                  ^
2681.         avcodec_find_encoder_by_name(name) :
2682.         avcodec_find_decoder_by_name(name);

avconv.c:2680:5: 
2678.     if(!name)
2679.         return CODEC_ID_NONE;
2680.     codec = encoder ?
          ^
2681.         avcodec_find_encoder_by_name(name) :
2682.         avcodec_find_decoder_by_name(name);

avconv.c:2683:9: Taking true branch
2681.         avcodec_find_encoder_by_name(name) :
2682.         avcodec_find_decoder_by_name(name);
2683.     if(!codec) {
              ^
2684.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2685.         exit_program(1);

avconv.c:2684:9: Skipping av_log(): empty list of specs
2682.         avcodec_find_decoder_by_name(name);
2683.     if(!codec) {
2684.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
2685.         exit_program(1);
2686.     }

avconv.c:2685:9: Skipping exit_program(): empty list of specs
2683.     if(!codec) {
2684.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2685.         exit_program(1);
              ^
2686.     }
2687.     if(codec->type != type) {

avconv.c:2687:8: 
2685.         exit_program(1);
2686.     }
2687.     if(codec->type != type) {
             ^
2688.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
2689.         exit_program(1);
