summaryrefslogtreecommitdiff
path: root/libavformat/rtp_h264.c
diff options
context:
space:
mode:
authorGordon Irlam <>2009-11-05 14:25:37 +0000
committerLuca Abeni <lucabe72@email.it>2009-11-05 14:25:37 +0000
commit9cad7e219377de4b466e8858286de23df3615b86 (patch)
tree864f03987146b5d7d2d25415da41ea4a6a0df807 /libavformat/rtp_h264.c
parentbddc2df52e9c59bcf7e7b87fbd427641cd7d4beb (diff)
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 ) Originally committed as revision 20463 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp_h264.c')
-rw-r--r--libavformat/rtp_h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtp_h264.c b/libavformat/rtp_h264.c
index fb7891dd3f..bc47078c28 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';