demux_lavf: use partial read for AVIOContext.read_packet

More betterer.
This commit is contained in:
wm4 2017-08-17 17:28:01 +02:00
parent d7b893cf35
commit 79a39aeebd
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ static int mp_read(void *opaque, uint8_t *buf, int size)
memcpy(buf, priv->init_fragment.start + priv->stream_pos, ret);
priv->stream_pos += ret;
} else {
ret = stream_read(stream, buf, size);
ret = stream_read_partial(stream, buf, size);
priv->stream_pos = priv->init_fragment.len + stream_tell(stream);
}