1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

lavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API

Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
This commit is contained in:
Stephan Holljes 2016-09-30 21:17:54 +02:00 committed by Clément Bœsch
parent fbf8ac7d2a
commit d0be0cbebc

View File

@ -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);
}