Browse Source

Fix memleak for currupt input.

Originally committed as revision 15507 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Carl Eugen Hoyos 17 years ago
parent
commit
c8562a6fda
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/vorbis_dec.c

+ 1
- 0
libavcodec/vorbis_dec.c View File

@@ -960,6 +960,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext) {
hdr_type=get_bits(gb, 8);
if (hdr_type!=5) {
av_log(avccontext, AV_LOG_ERROR, "Third header is not the setup header.\n");
vorbis_free(vc);
return -1;
}
if (vorbis_parse_setup_hdr(vc)) {


Loading…
Cancel
Save