X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavdevice%2Fopenal-dec.c;h=2227d6350bc0d06529a49f67e3b4c778500b38d8;hb=e37f161e66e042d6c2c7470c4d9881df9427fc4a;hp=77b63b569546d3a429be21f2c2d2bbb4054ff70d;hpb=b429440d857e01250666ed1a68c86c77e575b9ee;p=ffmpeg diff --git a/libavdevice/openal-dec.c b/libavdevice/openal-dec.c index 77b63b56954..2227d6350bc 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 { @@ -116,7 +117,7 @@ static inline void print_al_capture_devices(void *log_ctx) av_log(log_ctx, AV_LOG_INFO, " %s\n", devices); } -static int read_header(AVFormatContext *ctx, AVFormatParameters *ap) +static int read_header(AVFormatContext *ctx) { al_data *ad = ctx->priv_data; static const ALCenum sample_formats[2][2] = { @@ -151,7 +152,7 @@ static int read_header(AVFormatContext *ctx, AVFormatParameters *ap) } /* 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;