[FFmpeg-devel] A question about flushing the Vorbis decoder.

Dale Curtis dalecurtis at chromium.org
Thu Jun 5 02:59:45 CEST 2014


On Wed, Jun 4, 2014 at 5:54 PM, Michael Niedermayer <michaelni at gmx.at>
wrote:

> On Wed, Jun 04, 2014 at 03:25:15PM -0700, Dale Curtis wrote:
> > Should vorbis_decode_flush() set vc->first_frame = 0? Or are clients
> > expected to manage dropping the first buffer after seeks to the stream
> > start?
>
> Doesnt reseting first_frame on flush for vorbis make it behave
> differently than other decoders ?
>

No idea, hence my question :) I will say that not setting that means
clients which call flush prior to a seek(0) get a buffer that's not there
on the first decoding pass. That said, all future buffers are correctly
bit-exact. It's just the extra buffer that I'm curious about.

- dale


More information about the ffmpeg-devel mailing list