Files
Velix-MPV-Core/stream
wm4 7e85dc2167 stream_libarchive: fix hangs when demuxer does out of bound seeks
This happened with a .flac file inside an archive. It tried to seek
beyond the end of the archive entry in a format where seeking isn't
supported. stream_libarchive handles these situations by skipping data.
But when the end of the archive is reached, archive_read_data() returns
0. While libarchive didn't bother to fucking document this, they do say
it's supposed to work like read(), so I guess a return value of 0 really
means EOF. So change the "< 0" to "<= 0". Also add some error logging.

The same file actually worked without out of bounds reads when
extracted, so there still might be something very wrong.
2018-10-01 10:41:01 +02:00
..
2017-05-11 07:29:01 +02:00
2017-05-11 07:29:01 +02:00
…
…
2018-05-31 01:24:51 +03:00
2017-02-02 18:26:58 +01:00
2017-06-18 15:13:45 +02:00
2018-03-04 16:28:24 -08:00
2018-03-04 16:28:24 -08:00
2017-06-18 15:13:45 +02:00
2018-03-04 16:28:24 -08:00