Commit bfb7b011 authored by Max Kellermann's avatar Max Kellermann

lib/ffmpeg/IOContext: allow partial reads

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