]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtsp.c
avformat/avidec: also print frame_num in debug output
[ffmpeg] / libavformat / rtsp.c
index 91128e13097ddf9f5b29acaabf380aa43e307ac3..14ac510828a1ace2e1f0e4f33d4281e27d65b7a5 100644 (file)
@@ -2196,7 +2196,7 @@ static int sdp_probe(AVProbeData *p1)
 
     /* we look for a line beginning "c=IN IP" */
     while (p < p_end && *p != '\0') {
-        if (p + sizeof("c=IN IP") - 1 < p_end &&
+        if (sizeof("c=IN IP") - 1 < p_end - p &&
             av_strstart(p, "c=IN IP", NULL))
             return AVPROBE_SCORE_EXTENSION;