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:2728:1: start of procedure find_codec_or_die()
2726. }
2727. 
2728. static AVCodec *find_codec_or_die(const char *name, enum AVMediaType type, int encoder)
      ^
2729. {
2730.     const char *codec_string = encoder ? "encoder" : "decoder";

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

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

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

avconv.c:2733:5: 
2731.     AVCodec *codec;
2732. 
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);
