lib/ffmpeg/IOContext: allow partial reads
This commit is contained in:
parent
f6a705c769
commit
bfb7b0117f
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
|||
ver 0.22 (not yet released)
|
||||
* input
|
||||
- ffmpeg: allow partial reads
|
||||
|
||||
ver 0.21.6 (not yet released)
|
||||
* protocol
|
||||
|
|
|
@ -71,8 +71,8 @@ public:
|
|||
}
|
||||
|
||||
size_t Read(void *buffer, size_t size) {
|
||||
int result = avio_read(io_context,
|
||||
(unsigned char *)buffer, size);
|
||||
int result = avio_read_partial(io_context,
|
||||
(unsigned char *)buffer, size);
|
||||
if (result < 0)
|
||||
throw MakeFfmpegError(result, "avio_read() failed");
|
||||
|
||||
|
|
Loading…
Reference in New Issue