summaryrefslogtreecommitdiff
path: root/libavcodec/vorbisdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-06-07 01:27:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-06-07 02:09:27 +0200
commit5a376976a0f58b38076fe310a455ce03489d2f8a (patch)
treea5019c7fa25cfd284bcc0daa3a2278a08160d957 /libavcodec/vorbisdec.c
parent71da91e887d5412f22ed2a9a2cb9e875b5029f78 (diff)
avcodec/vorbisdec: Reset first_frame
This avoids returning a initial frame after seeking which does not match what would be received when decoding from the begin. Suggested-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vorbisdec.c')
-rw-r--r--libavcodec/vorbisdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vorbisdec.c b/libavcodec/vorbisdec.c
index 43eb3d9e60..87d1bbb97a 100644
--- a/libavcodec/vorbisdec.c
+++ b/libavcodec/vorbisdec.c
@@ -1828,6 +1828,7 @@ static av_cold void vorbis_decode_flush(AVCodecContext *avctx)
sizeof(*vc->saved));
}
vc->previous_window = -1;
+ vc->first_frame = 0;
}
AVCodec ff_vorbis_decoder = {