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

avconv.c:2795:1: start of procedure find_codec_or_die()
2793. }
2794. 
2795. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2796. {
2797.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2797:32: Condition is true
2795. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2796. {
2797.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2798.     AVCodec *codec;
2799. 

avconv.c:2797:5: 
2795. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2796. {
2797.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2798.     AVCodec *codec;
2799. 

avconv.c:2800:9: Taking false branch
2798.     AVCodec *codec;
2799. 
2800.     if(!name)
              ^
2801.         return CODEC_ID_NONE;
2802.     codec = encoder ?

avconv.c:2802:13: Condition is true
2800.     if(!name)
2801.         return CODEC_ID_NONE;
2802.     codec = encoder ?
                  ^
2803.         avcodec_find_encoder_by_name(name) :
2804.         avcodec_find_decoder_by_name(name);

avconv.c:2802:5: 
2800.     if(!name)
2801.         return CODEC_ID_NONE;
2802.     codec = encoder ?
          ^
2803.         avcodec_find_encoder_by_name(name) :
2804.         avcodec_find_decoder_by_name(name);

avconv.c:2805:9: Taking true branch
2803.         avcodec_find_encoder_by_name(name) :
2804.         avcodec_find_decoder_by_name(name);
2805.     if(!codec) {
              ^
2806.         av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
2807.         exit_program(1);

avconv.c:2806:9: Skipping av_log(): empty list of specs
2804.         avcodec_find_decoder_by_name(name);
2805.     if(!codec) {
2806.         av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
              ^
2807.         exit_program(1);
2808.     }

avconv.c:2807:9: Skipping exit_program(): empty list of specs
2805.     if(!codec) {
2806.         av_log(NULL, AV_LOG_ERROR, "Unknown %s '%s'\n", codec_string, name);
2807.         exit_program(1);
              ^
2808.     }
2809.     if(codec->type != type) {

avconv.c:2809:8: 
2807.         exit_program(1);
2808.     }
2809.     if(codec->type != type) {
             ^
2810.         av_log(NULL, AV_LOG_ERROR, "Invalid %s type '%s'\n", codec_string, name);
2811.         exit_program(1);
