[FFmpeg-devel] Fwd: [PATCH] Psygnosis YOP demuxer

Mohamed Naufal naufal11
Tue Jan 5 18:33:29 CET 2010


2010/1/5 Michael Niedermayer <michaelni at gmx.at>


[...]


> > +static int yop_read_packet(AVFormatContext *s, AVPacket *pkt)
> > +{
> > +    YopDecContext *yop = s->priv_data;
> > +    ByteIOContext *pb  = s->pb;
> > +
> > +    int ret;
> > +    int palette_size           = 4 + yop->num_pal_colors * 3;
>
> > +    int actual_video_data_size = yop->frame_size -
> > +                                 yop->audio_block_length - palette_size;
>
> this still can end up negative, there still are missing checks in the
> header parsing
>
>

Fixed.

[...]

Naufal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yop_demux.patch
Type: text/x-patch
Size: 7891 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100105/93838e7e/attachment.bin>



More information about the ffmpeg-devel mailing list