[FFmpeg-devel] Read backwards with get_bits

Michael Niedermayer michaelni at gmx.at
Tue Jan 27 18:42:05 CET 2015


On Tue, Jan 27, 2015 at 11:11:11AM -0500, Marcus Johnson wrote:
> Can this be done at all?

yes, you can probably use skip_bits() with a negative number
thats a hack though a bit ...
alternatively you could make a copy of the GetBitContext before
or as paul suggested reinit it from bytesteram2

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150127/75306629/attachment.asc>


More information about the ffmpeg-devel mailing list