X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fsol.c;h=d02373c65a7de9ea82d717fea359dd529cc74d46;hb=eaea76d72ce56f0c9ae4b15dbb6629ef1b027de7;hp=0fd4259651068809b5b73bd58523d290a59f6707;hpb=3d1af11df49c9bd27f6677ec2fa327b379144e11;p=ffmpeg diff --git a/libavformat/sol.c b/libavformat/sol.c index 0fd42596510..d02373c65a7 100644 --- a/libavformat/sol.c +++ b/libavformat/sol.c @@ -25,6 +25,7 @@ #include "libavutil/intreadwrite.h" #include "avformat.h" +#include "internal.h" #include "pcm.h" /* if we don't know the size in advance */ @@ -81,8 +82,7 @@ static int sol_channels(int magic, int type) return 2; } -static int sol_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int sol_read_header(AVFormatContext *s) { unsigned int magic,tag; AVIOContext *pb = s->pb; @@ -117,7 +117,7 @@ static int sol_read_header(AVFormatContext *s, st->codec->codec_id = codec; st->codec->channels = channels; st->codec->sample_rate = rate; - av_set_pts_info(st, 64, 1, rate); + avpriv_set_pts_info(st, 64, 1, rate); return 0; } @@ -147,5 +147,5 @@ AVInputFormat ff_sol_demuxer = { .read_probe = sol_probe, .read_header = sol_read_header, .read_packet = sol_read_packet, - .read_seek = pcm_read_seek, + .read_seek = ff_pcm_read_seek, };