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

avconv.c:2946:1: start of procedure find_codec_or_die()
2944. }
2945. 
2946. static enum CodecID find_codec_or_die(const char *name, int type, int encoder)
      ^
2947. {
2948.     const char *codec_string = encoder ? "encoder" : "decoder";

avconv.c:2948:32: Condition is true
2946. static enum CodecID find_codec_or_die(const char *name, int type, int encoder)
2947. {
2948.     const char *codec_string = encoder ? "encoder" : "decoder";
                                     ^
2949.     AVCodec *codec;
2950. 

avconv.c:2948:5: 
2946. static enum CodecID find_codec_or_die(const char *name, int type, int encoder)
2947. {
2948.     const char *codec_string = encoder ? "encoder" : "decoder";
          ^
2949.     AVCodec *codec;
2950. 

avconv.c:2951:9: Taking false branch
2949.     AVCodec *codec;
2950. 
2951.     if(!name)
              ^
2952.         return CODEC_ID_NONE;
2953.     codec = encoder ?

avconv.c:2953:13: Condition is true
2951.     if(!name)
2952.         return CODEC_ID_NONE;
2953.     codec = encoder ?
                  ^
2954.         avcodec_find_encoder_by_name(name) :
2955.         avcodec_find_decoder_by_name(name);

avconv.c:2953:5: 
2951.     if(!name)
2952.         return CODEC_ID_NONE;
2953.     codec = encoder ?
          ^
2954.         avcodec_find_encoder_by_name(name) :
2955.         avcodec_find_decoder_by_name(name);

avconv.c:2956:9: Taking true branch
2954.         avcodec_find_encoder_by_name(name) :
2955.         avcodec_find_decoder_by_name(name);
2956.     if(!codec) {
              ^
2957.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
2958.         exit_program(1);

avconv.c:2957:9: 
2955.         avcodec_find_decoder_by_name(name);
2956.     if(!codec) {
2957.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
              ^
2958.         exit_program(1);
2959.     }

avconv.c:2958:9: Skipping exit_program(): empty list of specs
2956.     if(!codec) {
2957.         fprintf(stderr, "Unknown %s '%s'\n", codec_string, name);
2958.         exit_program(1);
              ^
2959.     }
2960.     if(codec->type != type) {

avconv.c:2960:8: 
2958.         exit_program(1);
2959.     }
2960.     if(codec->type != type) {
             ^
2961.         fprintf(stderr, "Invalid %s type '%s'\n", codec_string, name);
2962.         exit_program(1);
