Commit bfb7b011 authored by Max Kellermann's avatar Max Kellermann

lib/ffmpeg/IOContext: allow partial reads

parent f6a705c7
ver 0.22 (not yet released)
* input
- ffmpeg: allow partial reads
ver 0.21.6 (not yet released)
* protocol
......
......@@ -71,7 +71,7 @@ public:
}
size_t Read(void *buffer, size_t size) {
int result = avio_read(io_context,
int result = avio_read_partial(io_context,
(unsigned char *)buffer, size);
if (result < 0)
throw MakeFfmpegError(result, "avio_read() failed");
......
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