# HG changeset patch # User lucabe # Date 1257431137 0 # Node ID c8a47f9a36a8a3840ef7a71517947e60370aff9c # Parent 49d4ac4b6516b72ebc3c2afb69f16e3dd2562e18 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 ) diff -r 49d4ac4b6516 -r c8a47f9a36a8 rtp_h264.c --- a/rtp_h264.c Thu Nov 05 08:53:05 2009 +0000 +++ b/rtp_h264.c Thu Nov 05 14:25:37 2009 +0000 @@ -368,7 +368,7 @@ 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';