[Ffmpeg-devel] Re: [PATCH] h264 muxing in mp4
Erik Slagter
erik
Sun Mar 12 14:46:38 CET 2006
On Sat, 2006-03-11 at 14:44 +0100, Michael Niedermayer wrote:
> > > + while(!*(nal_start++));
> > ^^^^^^^^^^^^^^^^^^^^^^^
> > > + nal_end = avc_find_startcode(nal_start, end);
> > > + put_be32(&pb, nal_end - nal_start);
> >
> > Isn't this a bit dangerous?
>
> IMHO no, nal_start < end should gurantee that there is a 00 00 01 there
> so the while wont runaway
Even is if the bitstream for some reason is completely bogus?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2771 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060312/64cb0496/attachment.bin>
More information about the ffmpeg-devel
mailing list