lavf: make av_set_pts_info private.

It's supposed to be called only from (de)muxers.
This commit is contained in:
Anton Khirnov
2011-11-29 19:28:15 +01:00
parent 06d7325ab1
commit c3f9ebf743
139 changed files with 338 additions and 205 deletions

View File

@ -31,6 +31,7 @@
#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"
#include "riff.h"
#include "isom.h"
@ -1827,7 +1828,7 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom)
sc->time_scale = 1;
}
av_set_pts_info(st, 64, 1, sc->time_scale);
avpriv_set_pts_info(st, 64, 1, sc->time_scale);
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
!st->codec->frame_size && sc->stts_count == 1) {