demux_lavf: clear sticky avio EOF in drop_buffers

A stream can report a one-shot EOF and then continue producing data
(disc-nav jump boundaries). Also clear a sticky read error, the
underlying source is being reused.
This commit is contained in:
Kacper Michajłow committed 2026-08-26 01:47:41 +02:00
1 parent af53a9dc4b
commit dbe496e6be
1 file changed
+3
+3
View File
@@ -1805,6 +1805,9 @@ static void demux_drop_buffers_lavf(demuxer_t *demuxer)
stream_drop_buffers(priv->stream);
avio_flush(priv->avfc->pb);
avformat_flush(priv->avfc);
// Clear sticky EOF/error to reuse this demuxer.
priv->avfc->pb->eof_reached = 0;
priv->avfc->pb->error = 0;
reset_dovi_split_state(demuxer);
}