Message ID | tencent_F3E6AFAA3BE1C1CDB6906BEA032968FE7E0A@qq.com |
---|---|
State | Accepted |
Commit | 269ed0a4138790285b29be9a7f4cb7237c7b6215 |
Headers | show |
Series | [FFmpeg-devel,1/2] avformat/hls: add AVFMT_NO_BYTE_SEEK flag | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_aarch64_jetson | success | Make finished |
andriy/make_fate_aarch64_jetson | success | Make fate finished |
andriy/make_armv7_RPi4 | success | Make finished |
andriy/make_fate_armv7_RPi4 | success | Make fate finished |
diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 92ad7ce1a6..80678cfbb5 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -2819,7 +2819,9 @@ static int read_thread(void *arg) ic->pb->eof_reached = 0; // FIXME hack, ffplay maybe should not use avio_feof() to test for the end if (seek_by_bytes < 0) - seek_by_bytes = !!(ic->iformat->flags & AVFMT_TS_DISCONT) && strcmp("ogg", ic->iformat->name); + seek_by_bytes = !(ic->iformat->flags & AVFMT_NO_BYTE_SEEK) && + !!(ic->iformat->flags & AVFMT_TS_DISCONT) && + strcmp("ogg", ic->iformat->name); is->max_frame_duration = (ic->iformat->flags & AVFMT_TS_DISCONT) ? 10.0 : 3600.0;