[FFmpeg-devel] Fw: [PATCH] add the protection for http range get request starting from file size
沈启超
qichaoshen at 163.com
Fri Oct 26 18:03:58 EEST 2018
I add the comment about the issue "https://trac.ffmpeg.org/ticket/6885"
-------- Forwarding messages --------
From: "shenqichao" <qichaoshen at 163.com>
Date: 2018-10-26 18:40:53
To: ffmpeg-devel at ffmpeg.org
Cc: shenqichao <qichaoshen at 163.com>
Subject: [FFmpeg-devel] [PATCH] add the protection for http range get request starting from file size
Signed-off-by: shenqichao <qichaoshen at 163.com>
---
libavformat/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/http.c b/libavformat/http.c
index 3a35bc7eac..129f683d15 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1669,7 +1669,7 @@ static int64_t http_seek_internal(URLContext *h, int64_t off, int whence, int fo
int old_buf_size, ret;
AVDictionary *options = NULL;
- if (whence == AVSEEK_SIZE)
+ if (whence == AVSEEK_SIZE || (whence == SEEK_SET && off == s->filesize))
return s->filesize;
else if (!force_reconnect &&
((whence == SEEK_CUR && off == 0) ||
--
2.19.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
More information about the ffmpeg-devel
mailing list