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

avconv.c:2726:1: start of procedure find_codec_or_die()
2724. }
2725. 
2726. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2727. {
2728.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2728:32: Condition is true
2726. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2727. {
2728.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2729.     AVCodec *codec;
2730. 

avconv.c:2728:5: 
2726. static enum CodecID find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
2727. {
2728.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2729.     AVCodec *codec;
2730. 

avconv.c:2731:9: Taking false branch
2729.     AVCodec *codec;
2730. 
2731.     if(!name)
              ^
2732.         return CODEC_ID_NONE;
2733.     codec = encoder ?

avconv.c:2733:13: Condition is true
2731.     if(!name)
2732.         return CODEC_ID_NONE;
2733.     codec = encoder ?
                  ^
2734.         avcodec_find_encoder_by_name(name) :
2735.         avcodec_find_decoder_by_name(name);

avconv.c:2733:5: 
2731.     if(!name)
2732.         return CODEC_ID_NONE;
2733.     codec = encoder ?
          ^
2734.         avcodec_find_encoder_by_name(name) :
2735.         avcodec_find_decoder_by_name(name);

avconv.c:2736:9: Taking true branch
2734.         avcodec_find_encoder_by_name(name) :
2735.         avcodec_find_decoder_by_name(name);
2736.     if(!codec) {
              ^
2737.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2738.         exit_program(1);

avconv.c:2737:9: Skipping av_log(): empty list of specs
2735.         avcodec_find_decoder_by_name(name);
2736.     if(!codec) {
2737.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
              ^
2738.         exit_program(1);
2739.     }

avconv.c:2738:9: Skipping exit_program(): empty list of specs
2736.     if(!codec) {
2737.         av_log(NULL, AV_LOG_FATAL, "Unknown %s '%s'\n", codec_string, name);
2738.         exit_program(1);
              ^
2739.     }
2740.     if(codec->type != type) {

avconv.c:2740:8: 
2738.         exit_program(1);
2739.     }
2740.     if(codec->type != type) {
             ^
2741.         av_log(NULL, AV_LOG_FATAL, "Invalid %s type '%s'\n", codec_string, name);
2742.         exit_program(1);
