[SCM] libav/experimental: Fix a typo in rtp_h264.c:parse_h264_sdp_line(). Patch by Gordon Irlam (gordonipub2 AT gordoni DOT com).

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:54:07 UTC 2013


The following commit has been merged in the experimental branch:
commit 9cad7e219377de4b466e8858286de23df3615b86
Author: Gordon Irlam <>
Date:   Thu Nov 5 14:25:37 2009 +0000

    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

diff --git a/libavformat/rtp_h264.c b/libavformat/rtp_h264.c
index fb7891d..bc47078 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';

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list