]> git.sesse.net Git - ffmpeg/commitdiff
avformat/rtsp: print a debug level note if time parsing fails
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 15 May 2015 18:19:21 +0000 (20:19 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 15 May 2015 18:21:37 +0000 (20:21 +0200)
Fixes CID733718 again

This partly reverts commit eb7ddb5066843ab16caf33b05eafb2576648b797.

libavformat/rtsp.c

index b52593bd3862267443f6afff0b7ff1f83eda40f5..98bd4cbe9ab2f9db7e2cb5e6af2567c2f3f5ca33 100644 (file)
@@ -179,7 +179,8 @@ static void rtsp_parse_range_npt(const char *p, int64_t *start, int64_t *end)
     if (*p == '-') {
         p++;
         get_word_sep(buf, sizeof(buf), "-", &p);
-        av_parse_time(end, buf, 1);
+        if (av_parse_time(end, buf, 1) < 0)
+            av_log(NULL, AV_LOG_DEBUG, "Failed to parse interval end specification '%s'\n", buf);
     }
 }