diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-11-29 19:28:15 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-11-30 20:34:45 +0100 |
commit | c3f9ebf74371b63fba0e7491e61904bbd165cd0f (patch) | |
tree | cad6d000dccf25ecea1db16f1befb17f79d13c33 /libavformat/rawdec.c | |
parent | 06d7325ab1fcc009f0183be3a0b0504f6d99edfb (diff) | |
download | ffmpeg-c3f9ebf74371b63fba0e7491e61904bbd165cd0f.tar.gz |
lavf: make av_set_pts_info private.
It's supposed to be called only from (de)muxers.
Diffstat (limited to 'libavformat/rawdec.c')
-rw-r--r-- | libavformat/rawdec.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index db8a0cd62b..81dd8b49e5 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -21,6 +21,7 @@ */ #include "avformat.h" +#include "internal.h" #include "avio_internal.h" #include "rawdec.h" #include "libavutil/opt.h" @@ -62,7 +63,7 @@ int ff_raw_read_header(AVFormatContext *s, AVFormatParameters *ap) st->codec->bits_per_coded_sample = av_get_bits_per_sample(st->codec->codec_id); assert(st->codec->bits_per_coded_sample > 0); st->codec->block_align = st->codec->bits_per_coded_sample*st->codec->channels/8; - av_set_pts_info(st, 64, 1, st->codec->sample_rate); + avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); break; } case AVMEDIA_TYPE_VIDEO: { @@ -84,7 +85,7 @@ int ff_raw_read_header(AVFormatContext *s, AVFormatParameters *ap) av_log(s, AV_LOG_ERROR, "Could not parse framerate: %s.\n", s1->framerate); goto fail; } - av_set_pts_info(st, 64, framerate.den, framerate.num); + avpriv_set_pts_info(st, 64, framerate.den, framerate.num); st->codec->width = width; st->codec->height = height; st->codec->pix_fmt = pix_fmt; @@ -159,7 +160,7 @@ int ff_raw_video_read_header(AVFormatContext *s, } st->codec->time_base = (AVRational){framerate.den, framerate.num}; - av_set_pts_info(st, 64, 1, 1200000); + avpriv_set_pts_info(st, 64, 1, 1200000); fail: return ret; |