[Ffmpeg-devel] Reading blockless bitstream

Michael Niedermayer michaelni
Sun Mar 25 23:11:03 CEST 2007


Hi

On Sun, Mar 25, 2007 at 09:56:51PM +0100, M?ns Rullg?rd wrote:
> M?ns Rullg?rd <mans at mansr.com> writes:
> 
> > Is there some trick that can be used to read an arbitrarily long
> > bitstream with no division into blocks when it is supplied as a
> > sequence of buffers?  Copying and merging all buffers is not an option
> > as the length is unbounded.  What I'm looking for is some way to
> > seamlessly shift a GetBitsContext from one buffer to another.  If
> > anyone has done something like that, I'd appreciate if you'd share any
> > hints.
> 
> Please, can someone at least say it's impossible?

its possible if i understand you correctly our mp3 decoder does something
similar with the bitresavoir though the implementation was written for
speed not beauty, als note mp3 needs end checks anyway so theres no extra
cost for checking ...

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

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070325/bc3ceb87/attachment.pgp>



More information about the ffmpeg-devel mailing list