Commit 0f80428f authored by Max Kellermann's avatar Max Kellermann

ffmpeg: use decoder_read() wrapper instead of direct input_stream_read()

decoder_read() checks the decoder command. Without this patch, the ffmpeg plugin could become unresponsive.
parent 4d069b49
......@@ -86,7 +86,8 @@ static int mpdurl_read(URLContext *h, unsigned char *buf, int size)
FopsHelper *base = (FopsHelper *) h->priv_data;
while (true) {
size_t ret = input_stream_read(base->input, (void *)buf, size);
size_t ret = decoder_read(base->decoder, base->input,
(void *)buf, size);
if (ret > 0)
return ret;
......
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