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

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

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

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

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

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

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

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

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

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

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