summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorStephan Holljes <klaxa1337@googlemail.com>2016-09-30 21:17:54 +0200
committerClément Bœsch <u@pkh.me>2016-10-03 23:28:48 +0200
commitd0be0cbebc207f3a39da2a668f45be413c9152c4 (patch)
tree91cbb32bb21d7ad4ff0bce6799f23d051064b429 /libavformat/aviobuf.c
parentfbf8ac7d2a37b6069bb462df15e18472df004a6f (diff)
downloadffmpeg-d0be0cbebc207f3a39da2a668f45be413c9152c4.tar.gz
lavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API
Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index f3acb324fa..134d627a6e 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -1156,7 +1156,8 @@ int avio_read_to_bprint(AVIOContext *h, AVBPrint *pb, size_t max_size)
int avio_accept(AVIOContext *s, AVIOContext **c)
{
int ret;
- URLContext *sc = s->opaque;
+ AVIOInternal *internal = s->opaque;
+ URLContext *sc = internal->h;
URLContext *cc = NULL;
ret = ffurl_accept(sc, &cc);
if (ret < 0)
@@ -1166,7 +1167,8 @@ int avio_accept(AVIOContext *s, AVIOContext **c)
int avio_handshake(AVIOContext *c)
{
- URLContext *cc = c->opaque;
+ AVIOInternal *internal = c->opaque;
+ URLContext *cc = internal->h;
return ffurl_handshake(cc);
}