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/bfi.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/bfi.c')
-rw-r--r-- | libavformat/bfi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/bfi.c b/libavformat/bfi.c index 647dd54894..bb02e85581 100644 --- a/libavformat/bfi.c +++ b/libavformat/bfi.c @@ -28,6 +28,7 @@ #include "libavutil/intreadwrite.h" #include "avformat.h" +#include "internal.h" typedef struct BFIContext { int nframes; @@ -86,7 +87,7 @@ static int bfi_read_header(AVFormatContext * s, AVFormatParameters * ap) astream->codec->sample_rate = avio_rl32(pb); /* Set up the video codec... */ - av_set_pts_info(vstream, 32, 1, fps); + avpriv_set_pts_info(vstream, 32, 1, fps); vstream->codec->codec_type = AVMEDIA_TYPE_VIDEO; vstream->codec->codec_id = CODEC_ID_BFI; vstream->codec->pix_fmt = PIX_FMT_PAL8; @@ -99,7 +100,7 @@ static int bfi_read_header(AVFormatContext * s, AVFormatParameters * ap) astream->codec->bit_rate = astream->codec->sample_rate * astream->codec->bits_per_coded_sample; avio_seek(pb, chunk_header - 3, SEEK_SET); - av_set_pts_info(astream, 64, 1, astream->codec->sample_rate); + avpriv_set_pts_info(astream, 64, 1, astream->codec->sample_rate); return 0; } |