X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fxmv.c;h=6fa9a6a0a7fb37f74ca90ab7f652e6a0809cf3b9;hb=6c071a2b389578b0607b4d4356520a43fac4b3bc;hp=30e3b5ade9791de4403878db72838d97b26b8b76;hpb=84ad31ff180fa089cd6bfd93c246336a16036455;p=ffmpeg diff --git a/libavformat/xmv.c b/libavformat/xmv.c index 30e3b5ade97..6fa9a6a0a7f 100644 --- a/libavformat/xmv.c +++ b/libavformat/xmv.c @@ -30,6 +30,7 @@ #include "libavutil/intreadwrite.h" #include "avformat.h" +#include "internal.h" #include "riff.h" #define XMV_MIN_HEADER_SIZE 36 @@ -125,8 +126,7 @@ static int xmv_probe(AVProbeData *p) return 0; } -static int xmv_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int xmv_read_header(AVFormatContext *s) { XMVDemuxContext *xmv = s->priv_data; AVIOContext *pb = s->pb; @@ -154,7 +154,7 @@ static int xmv_read_header(AVFormatContext *s, if (!vst) return AVERROR(ENOMEM); - av_set_pts_info(vst, 32, 1, 1000); + avpriv_set_pts_info(vst, 32, 1, 1000); vst->codec->codec_type = AVMEDIA_TYPE_VIDEO; vst->codec->codec_id = CODEC_ID_WMV2; @@ -224,7 +224,7 @@ static int xmv_read_header(AVFormatContext *s, ast->codec->bit_rate = track->bit_rate; ast->codec->block_align = 36 * track->channels; - av_set_pts_info(ast, 32, track->block_samples, track->sample_rate); + avpriv_set_pts_info(ast, 32, track->block_samples, track->sample_rate); packet->stream_index = ast->index;