[FFmpeg-devel] [PATCH] MLP/TrueHD decoder

Michael Niedermayer michaelni
Wed Nov 14 12:52:54 CET 2007


On Wed, Nov 14, 2007 at 11:31:43AM +0000, Ian Caulfield wrote:
> On Nov 14, 2007 11:10 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> >
> > well add a
> > if(size to big) return packet
> 
> Fair enough. I'm having trouble figuring out the cleanest way to
> implement the code to find the header size. ff_combine_frame seems to
> be designed for cases where packet boundaries can be easily found -
> not where the size of a packet is determined by data within the
> packet. What's the nicest way to get hold of the third and fourth
> bytes of the packet, handling the case where these might not be
> supplied together?

they should be together after ff_combine_frame() combined them in its
internal buffer

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

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071114/1df13d58/attachment.pgp>



More information about the ffmpeg-devel mailing list