[FFmpeg-devel] [PATCH] increase SDP buffer size
Ronald S. Bultje
rsbultje
Sun Aug 31 16:11:53 CEST 2008
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:
[rtsp @ 0x1830800]Discarded 13 bytes of SDP line-data (OpaqueData)
[rtsp @ 0x1830800]Discarded 465 bytes of SDP line-data (ASMRuleBook)
Ronald
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtsp-discarddata.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080831/0cf54601/attachment.txt>
More information about the ffmpeg-devel
mailing list