X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwv.c;h=33f69d8a1f81dfd6a0a3d43bfc225a240e3e772a;hb=bc900501e0e2002e40d2d0c87b5a98b913b2d1a2;hp=e995e51bb90beeb98c1a7f4a54e6543d97e8b618;hpb=ef74ab20c255abf49b856c15f812cc9ea3fec061;p=ffmpeg diff --git a/libavformat/wv.c b/libavformat/wv.c index e995e51bb90..33f69d8a1f8 100644 --- a/libavformat/wv.c +++ b/libavformat/wv.c @@ -23,6 +23,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/dict.h" #include "avformat.h" +#include "internal.h" #include "apetag.h" #include "id3v1.h" @@ -220,7 +221,7 @@ static int wv_read_header(AVFormatContext *s, } /* now we are ready: build format streams */ - st = av_new_stream(s, 0); + st = avformat_new_stream(s, NULL); if (!st) return -1; st->codec->codec_type = AVMEDIA_TYPE_AUDIO; @@ -229,7 +230,7 @@ static int wv_read_header(AVFormatContext *s, st->codec->channel_layout = wc->chmask; st->codec->sample_rate = wc->rate; st->codec->bits_per_coded_sample = wc->bpp; - av_set_pts_info(st, 64, 1, wc->rate); + avpriv_set_pts_info(st, 64, 1, wc->rate); st->start_time = 0; st->duration = wc->samples;