From 9784ef291dd6b818ce1b8dc0c758ca3ed2e5ad07 Mon Sep 17 00:00:00 2001 From: lucabe Date: Thu, 5 Nov 2009 14:25:37 +0000 Subject: [PATCH] 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 ) git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20463 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavformat/rtp_h264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtp_h264.c b/libavformat/rtp_h264.c index fb7891dd3..bc47078c2 100644 --- a/libavformat/rtp_h264.c +++ b/libavformat/rtp_h264.c @@ -368,7 +368,7 @@ static int parse_h264_sdp_line(AVFormatContext *s, int st_index, 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'; -- 2.11.4.GIT