[vlc-devel] [PATCH 1/2] httplive: fix Read func. (when caller skips data)

Frederic YHUEL fyhuel at viotech.net
Tue Jan 10 15:28:56 CET 2012

On Tue, Jan 10, 2012 at 2:17 PM, Frederic YHUEL <fyhuel at viotech.net> wrote:
> On Tue, Jan 10, 2012 at 11:02 AM, Jean-Paul Saman <jpsaman at videolan.org> wrote:
>> I stand with my earlier conclusion the patch is wrong.
> Ok, if you say so... You're probably right.
> But (you might think I'm a pain in the neck) you didn't answer to the
> question below:
>>>> I mean, what's the point to allocate a buffer and memcpy data in it,
>>>> if the caller just wants to skips that data?

Here is a patch that modify slightly the TS demuxer so that one over
0xffff TS packet is skipped.

Then you can see that my patch is fine.

Maybe there is a simpler way to test it though :-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-demux-ts.c-test-HLS-Read-function-when-caller-skips-.patch
Type: text/x-diff
Size: 1585 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120110/a79b4db1/attachment.patch>

More information about the vlc-devel mailing list