Browse Source

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>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
5a376976a0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/vorbisdec.c

+ 1
- 0
libavcodec/vorbisdec.c View File

@@ -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 = {


Loading…
Cancel
Save