[FFmpeg-devel] [PATCH] LMLM4 demuxer

Michael Niedermayer michaelni
Sun Jan 6 15:12:28 CET 2008


On Sun, Jan 06, 2008 at 01:44:24PM +0100, Ivo wrote:
> Hi,
> 
> See subject. Description and link to sample files are here:
> 
> http://wiki.multimedia.cx/index.php?title=LMLM4
> 
> --Ivo

[...]
> +static int lmlm4_probe(AVProbeData * pd) {
> +    unsigned char *buf = pd->buf;
> +    unsigned int frame_type, packet_size;
> +   
> +    if (pd->buf_size < 10)
> +        return 0;

see AVPROBE_PADDING_SIZE
its guranteed to be  larger than 10 so no need to check


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

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- 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/20080106/461211d6/attachment.pgp>



More information about the ffmpeg-devel mailing list