From cba7681e7931d7217cc063dc256939baec83a19e Mon Sep 17 00:00:00 2001 From: Mladen Milinkovic Date: Thu, 1 Aug 2024 10:06:12 +0200 Subject: [PATCH 02/11] VideoPlayer: check AVFMT_NO_BYTE_SEEK flag for seek_by_bytes Applied ffplay release/5.1 patches --- src/videoplayer/backend/streamdemuxer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/videoplayer/backend/streamdemuxer.cpp b/src/videoplayer/backend/streamdemuxer.cpp index 2eb59af1..3fb7476f 100644 --- a/src/videoplayer/backend/streamdemuxer.cpp +++ b/src/videoplayer/backend/streamdemuxer.cpp @@ -529,7 +529,7 @@ StreamDemuxer::run() ic->pb->eof_reached = 0; // FIXME hack, ffplay maybe should not use avio_feof() to test for the end if(m_vs->seek_by_bytes < 0) - m_vs->seek_by_bytes = !!(ic->iformat->flags & AVFMT_TS_DISCONT) && strcmp("ogg", ic->iformat->name); + m_vs->seek_by_bytes = !(ic->iformat->flags & AVFMT_NO_BYTE_SEEK) && !!(ic->iformat->flags & AVFMT_TS_DISCONT) && strcmp("ogg", ic->iformat->name); m_vs->maxFrameDuration = (ic->iformat->flags & AVFMT_TS_DISCONT) ? 10.0 : 3600.0; -- 2.46.0