Commit 533e4fcd authored by Max Kellermann's avatar Max Kellermann

decoder/mp4ff: work around assertion failure in read() callback

This workaround leads to an infinite loop instead of an assertion failure, but hey, now it's libmp4ff's fault.
parent f5d38592
......@@ -94,6 +94,12 @@ mp4_read(void *user_data, void *buffer, uint32_t length)
{
struct mp4ff_input_stream *mis = user_data;
if (length == 0)
/* libmp4ff is known to attempt to read 0 bytes - make
this a special case, because the input_stream API
would not allow this */
return 0;
return decoder_read(mis->decoder, mis->input_stream, buffer, length);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment