[FFmpeg-trac] #6885(avformat:open): Some media files don't work on FFmpeg as HTTP stream-in (worked with much older FFmpeg version)
FFmpeg
trac at avcodec.org
Fri Oct 26 18:01:43 EEST 2018
#6885: Some media files don't work on FFmpeg as HTTP stream-in (worked with much
older FFmpeg version)
-------------------------------------+-------------------------------------
Reporter: jaypadia | Owner:
Type: defect | Status: open
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: http mov | Blocked By:
regression | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by qichaoshen):
And I submit a patch about this problem
///////////////////////////
---
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
///////////////////////////
This modification can fix this issue.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6885#comment:14>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list