[FFmpeg-devel] [PATCH] WebM mux/demux
David Conrad
lessen42
Thu May 20 10:27:02 CEST 2010
On May 19, 2010, at 6:14 PM, Ronald S. Bultje wrote:
> Hi,
>
> On Wed, May 19, 2010 at 5:22 PM, David Conrad <lessen42 at gmail.com> wrote:
>> (for certain definitions of fixed...)
> [..]
>> + int probelen = strlen(matroska_doctypes[i]);
>> + for (n = 4+size; n <= 4+size+total-(probelen-1); n++)
>> + if (!memcmp(p->buf+n, matroska_doctypes[i], probelen-1))
>
> Why -1? The original code has -1 because sizeof(str) includes the
> terminating zero. strlen() doesn't count that, so the -1 becomes
> unnecessary.
Zombie coding.
> Otherwise yes, but Baptiste is maintainer.
You meant Aurel?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: textmate stdin FdGKP6.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100520/da9dfaa9/attachment.txt>
More information about the ffmpeg-devel
mailing list