Re: [FFmpeg-devel] Read backwards with get_bits

2015-01-27 Thread Marcus Johnson
I just tried using skip_bits with a negative number and it seems to have worked fine, thanks guys. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] Read backwards with get_bits

2015-01-27 Thread Marcus Johnson
Can this be done at all? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] Read backwards with get_bits

2015-01-27 Thread Michael Niedermayer
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