Mercurial > libavformat.hg
changeset 5352:c8a47f9a36a8 libavformat
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 )
author | lucabe |
---|---|
date | Thu, 05 Nov 2009 14:25:37 +0000 |
parents | 49d4ac4b6516 |
children | 70956fb584b3 |
files | rtp_h264.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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';