[FFmpeg-cvslog] r20463 - trunk/libavformat/rtp_h264.c
lucabe
subversion
Thu Nov 5 15:25:37 CET 2009
Author: lucabe
Date: Thu Nov 5 15:25:37 2009
New Revision: 20463
Log:
Fix a typo in rtp_h264.c:parse_h264_sdp_line(). Patch by Gordon Irlam
(gordonipub2 AT gordoni DOT com).
This fixes H.264 over RTP when the SDP contains a "framesize:" attribute
(for example, rtsp://video3.americafree.tv/AFTVCartoonsH264250.sdp )
Modified:
trunk/libavformat/rtp_h264.c
Modified: trunk/libavformat/rtp_h264.c
==============================================================================
--- trunk/libavformat/rtp_h264.c Thu Nov 5 09:53:05 2009 (r20462)
+++ trunk/libavformat/rtp_h264.c Thu Nov 5 15:25:37 2009 (r20463)
@@ -368,7 +368,7 @@ static int parse_h264_sdp_line(AVFormatC
while (*p && *p == ' ') p++; // strip spaces.
while (*p && *p != ' ') p++; // eat protocol identifier
while (*p && *p == ' ') p++; // strip trailing spaces.
- while (*p && *p != '-' && (buf1 - dst) < sizeof(buf1) - 1) {
+ while (*p && *p != '-' && (dst - buf1) < sizeof(buf1) - 1) {
*dst++ = *p++;
}
*dst = '\0';
More information about the ffmpeg-cvslog
mailing list