[FFmpeg-devel] [PATCH] increase SDP buffer size

Ronald S. Bultje rsbultje
Mon Sep 1 16:23:13 CEST 2008


Hi,

On Sun, Aug 31, 2008 at 11:14 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Sun, Aug 31, 2008 at 10:11:53AM -0400, Ronald S. Bultje wrote:
>> Hi,
>>
>> I've found some streams with SDP lines longer than 1024 bytes.
>> Currently, rtsp.c discards those extra bytes, leading to incomplete
>> SDP parsing and failure to play/offer some streams (or offer them
>> incorrectly) in the RTSP client.
>>
>> Attached patch detects those, adds an av_log(ERROR) so we can detect
>> when it happens (instead of silently losing data) and increases the
>> buffersize to handle the stream that failed for me like this:
>
> i think the 1024->2048 is ok even though iam not maintainer

I applied this modification alone, thanks for review.

Ronald




More information about the ffmpeg-devel mailing list