[MPlayer-dev-eng] [PATCH] boundary check for demux_real.c
Roberto Togni
rxt at rtogni.it
Tue Jul 10 22:21:05 CEST 2007
On Mon, 9 Jul 2007 22:04:53 +0800
陆然 <hephooey at gmail.com> wrote:
> Hi,
>
> On Monday 09 July 2007, Roberto Togni wrote:
> > The idea is ok, but shouldn't len be checked against the remaining size
> > of the packet (ie. vpkg_length - the size of blocks already received)?
>
> You are right, how about the patch in the attachment?
>
Hmm, if the fragment belongs to the next packet (the previous packet is
incomplete because of data loss) it may be wrongly discarded.
Can you test the attached patch?
Ciao,
Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demux_real.c.diff
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070710/ccc3a520/attachment.bin>
More information about the MPlayer-dev-eng
mailing list