From 5d76674756806e3b458e484788775fcee34aac2a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 17 Aug 2017 15:01:44 +0200 Subject: lavf: make avio_read_partial() public Main use-case is proxying avio through a foreign I/O layer and a custom AVIO context, without losing latency and performance characteristics. Signed-off-by: Luca Barbato Merged from Libav commit 173b56218f39c64. --- libavformat/rawdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/rawdec.c') diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index 876a6e6a75..e926549a60 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -43,7 +43,7 @@ int ff_raw_read_partial_packet(AVFormatContext *s, AVPacket *pkt) pkt->pos= avio_tell(s->pb); pkt->stream_index = 0; - ret = ffio_read_partial(s->pb, pkt->data, size); + ret = avio_read_partial(s->pb, pkt->data, size); if (ret < 0) { av_packet_unref(pkt); return ret; -- cgit v1.2.3