X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavdevice%2Fopenal-dec.c;h=17256ca0668488aab9b735da8c32303e2983bf92;hb=4f79c7dd0853a10a28f603bceaba0b192540f67a;hp=1b70525c774ba5ec5a413e008a65ddde870ce3a5;hpb=988f585fcb1cfb40fe4b706c32b31594b536bba0;p=ffmpeg diff --git a/libavdevice/openal-dec.c b/libavdevice/openal-dec.c index 1b70525c774..17256ca0668 100644 --- a/libavdevice/openal-dec.c +++ b/libavdevice/openal-dec.c @@ -25,6 +25,7 @@ #include #include "libavutil/opt.h" +#include "libavformat/internal.h" #include "avdevice.h" typedef struct { @@ -145,13 +146,13 @@ static int read_header(AVFormatContext *ctx, AVFormatParameters *ap) if (error = al_get_error(ad->device, &error_msg)) goto fail; /* Create stream */ - if (!(st = av_new_stream(ctx, 0))) { + if (!(st = avformat_new_stream(ctx, NULL))) { error = AVERROR(ENOMEM); goto fail; } /* We work in microseconds */ - av_set_pts_info(st, 64, 1, 1000000); + avpriv_set_pts_info(st, 64, 1, 1000000); /* Set codec parameters */ codec = st->codec;