[FFmpeg-devel] [PATCH] SVQ3: Fix decoding with A32_BITSTREAM_READER

Reimar Döffinger Reimar.Doeffinger
Sun Mar 1 13:04:56 CET 2009

On Sun, Mar 01, 2009 at 10:58:28AM +0000, Mans Rullgard wrote:
> svq3_decode_slice_header() modifies the buffer used by the bitstream
> reader.  Some of the bitstream readers cache a few bytes of data, which
> must be flushed after such a modification.  Calling skip_bits_long(gb, 0)
> achieves this.

I'd at least add a new function, e.g. get_bits_reload(), future
bitstream readers might not necessarily reload the data when skipping 0

More information about the ffmpeg-devel mailing list