Commit 27e57a5b authored by cehoyos's avatar cehoyos

Fix memleak for currupt input.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15507 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e104d74d
...@@ -960,6 +960,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext) { ...@@ -960,6 +960,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext) {
hdr_type=get_bits(gb, 8); hdr_type=get_bits(gb, 8);
if (hdr_type!=5) { if (hdr_type!=5) {
av_log(avccontext, AV_LOG_ERROR, "Third header is not the setup header.\n"); av_log(avccontext, AV_LOG_ERROR, "Third header is not the setup header.\n");
vorbis_free(vc);
return -1; return -1;
} }
if (vorbis_parse_setup_hdr(vc)) { if (vorbis_parse_setup_hdr(vc)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment