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

avconv.c:2733:1: start of procedure find_codec_or_die()
2731. }
2732. 
2733. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2734. {
2735.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2735:32: Condition is true
2733. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2734. {
2735.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2736.     AVCodec *codec;
2737. 

avconv.c:2735:5: 
2733. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2734. {
2735.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2736.     AVCodec *codec;
2737. 

avconv.c:2738:9: Taking false branch
2736.     AVCodec *codec;
2737. 
2738.     if(!name)
              ^
2739.         return CODEC_ID_NONE;
2740.     codec = encoder ?

avconv.c:2740:13: Condition is true
2738.     if(!name)
2739.         return CODEC_ID_NONE;
2740.     codec = encoder ?
                  ^
2741.         avcodec_find_encoder_by_name(name) :
2742.         avcodec_find_decoder_by_name(name);

avconv.c:2740:5: 
2738.     if(!name)
2739.         return CODEC_ID_NONE;
2740.     codec = encoder ?
          ^
2741.         avcodec_find_encoder_by_name(name) :
2742.         avcodec_find_decoder_by_name(name);

avconv.c:2743:9: Taking true branch
2741.         avcodec_find_encoder_by_name(name) :
2742.         avcodec_find_decoder_by_name(name);
2743.     if(!codec) {
              ^
2744.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2745.         exit_program(1);

avconv.c:2744:9: Skipping av_log(): empty list of specs
2742.         avcodec_find_decoder_by_name(name);
2743.     if(!codec) {
2744.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
2745.         exit_program(1);
2746.     }

avconv.c:2745:9: Skipping exit_program(): empty list of specs
2743.     if(!codec) {
2744.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2745.         exit_program(1);
              ^
2746.     }
2747.     if(codec->type != type) {

avconv.c:2747:8: 
2745.         exit_program(1);
2746.     }
2747.     if(codec->type != type) {
             ^
2748.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
2749.         exit_program(1);
