[FFmpeg-devel] [PATCH] RDT/Realmedia patches #2

Ronald S. Bultje rsbultje
Sat Nov 15 17:25:59 CET 2008


Hi,

On Sat, Nov 15, 2008 at 4:36 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Fri, Nov 14, 2008 at 10:05:36PM -0500, Ronald S. Bultje wrote:
>> -    if (len > 0 && (buf[0] < 0x40 || buf[0] > 0x42)) {
>> -        buf += 9;
>> -        len -= 9;
>> -        consumed += 9;
>> +    /* skip status packets */
>> +    while (len >= 5 && buf[1] == 0xFF /* status packet */) {
>> +        int pkt_len;
>> +
>> +        if (!(buf[0] & 0x80))
>> +            return -1; /* frame contains no data packet */
>> +        pkt_len  = AV_RB16(buf+3);
>> +        buf += pkt_len;
>> +        len -= pkt_len;
>> +        consumed += pkt_len;
>>      }

Here's this part of the patch alone...

Ronald
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rdt_parse_header-skip_status.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081115/8247fee5/attachment.txt>



More information about the ffmpeg-devel mailing list