X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fxwma.c;h=ea7cc4f36e9783c09249b73e0ad5c485ee6697c8;hb=e37f161e66e042d6c2c7470c4d9881df9427fc4a;hp=94208abc475087b003bef55f70569a23b9af9915;hpb=d8cab5c26b0987f139830937e1f30b2a10822680;p=ffmpeg diff --git a/libavformat/xwma.c b/libavformat/xwma.c index 94208abc475..ea7cc4f36e9 100644 --- a/libavformat/xwma.c +++ b/libavformat/xwma.c @@ -22,6 +22,7 @@ #include #include "avformat.h" +#include "internal.h" #include "riff.h" /* @@ -39,7 +40,7 @@ static int xwma_probe(AVProbeData *p) return 0; } -static int xwma_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int xwma_read_header(AVFormatContext *s) { int64_t size, av_uninit(data_size); int ret; @@ -115,7 +116,7 @@ static int xwma_read_header(AVFormatContext *s, AVFormatParameters *ap) } /* set the sample rate */ - av_set_pts_info(st, 64, 1, st->codec->sample_rate); + avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); /* parse the remaining RIFF chunks */ for (;;) {