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

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

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

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

avconv.c:2730:13: Condition is true
2728.     AVCodec *codec;
2729. 
2730.     codec = encoder ?
                  ^
2731.         avcodec_find_encoder_by_name(name) :
2732.         avcodec_find_decoder_by_name(name);

avconv.c:2730:5: 
2728.     AVCodec *codec;
2729. 
2730.     codec = encoder ?
          ^
2731.         avcodec_find_encoder_by_name(name) :
2732.         avcodec_find_decoder_by_name(name);

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

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

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

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