From c3f9ebf74371b63fba0e7491e61904bbd165cd0f Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 29 Nov 2011 19:28:15 +0100 Subject: lavf: make av_set_pts_info private. It's supposed to be called only from (de)muxers. --- libavformat/oma.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libavformat/oma.c') diff --git a/libavformat/oma.c b/libavformat/oma.c index da014689d0..9e98202e4f 100644 --- a/libavformat/oma.c +++ b/libavformat/oma.c @@ -41,6 +41,7 @@ */ #include "avformat.h" +#include "internal.h" #include "libavutil/intreadwrite.h" #include "libavutil/des.h" #include "pcm.h" @@ -343,14 +344,14 @@ static int oma_read_header(AVFormatContext *s, AV_WL16(&edata[10], 1); // always 1 // AV_WL16(&edata[12], 0); // always 0 - av_set_pts_info(st, 64, 1, st->codec->sample_rate); + avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); break; case OMA_CODECID_ATRAC3P: st->codec->channels = (codec_params >> 10) & 7; framesize = ((codec_params & 0x3FF) * 8) + 8; st->codec->sample_rate = srate_tab[(codec_params >> 13) & 7]*100; st->codec->bit_rate = st->codec->sample_rate * framesize * 8 / 1024; - av_set_pts_info(st, 64, 1, st->codec->sample_rate); + avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); av_log(s, AV_LOG_ERROR, "Unsupported codec ATRAC3+!\n"); break; case OMA_CODECID_MP3: -- cgit v1.2.3