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 /libavdevice | |
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 'libavdevice')
-rw-r--r-- | libavdevice/alsa-audio-dec.c | 3 | ||||
-rw-r--r-- | libavdevice/bktr.c | 3 | ||||
-rw-r--r-- | libavdevice/fbdev.c | 3 | ||||
-rw-r--r-- | libavdevice/jack_audio.c | 3 | ||||
-rw-r--r-- | libavdevice/libcdio.c | 2 | ||||
-rw-r--r-- | libavdevice/libdc1394.c | 3 | ||||
-rw-r--r-- | libavdevice/oss_audio.c | 3 | ||||
-rw-r--r-- | libavdevice/pulse.c | 3 | ||||
-rw-r--r-- | libavdevice/sndio_dec.c | 3 | ||||
-rw-r--r-- | libavdevice/v4l.c | 3 | ||||
-rw-r--r-- | libavdevice/v4l2.c | 3 | ||||
-rw-r--r-- | libavdevice/vfwcap.c | 3 | ||||
-rw-r--r-- | libavdevice/x11grab.c | 3 |
13 files changed, 25 insertions, 13 deletions
diff --git a/libavdevice/alsa-audio-dec.c b/libavdevice/alsa-audio-dec.c index 1346016254..5344b1988d 100644 --- a/libavdevice/alsa-audio-dec.c +++ b/libavdevice/alsa-audio-dec.c @@ -47,6 +47,7 @@ #include <alsa/asoundlib.h> #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include "libavutil/opt.h" #include "alsa-audio.h" @@ -102,7 +103,7 @@ static av_cold int audio_read_header(AVFormatContext *s1, st->codec->codec_id = codec_id; st->codec->sample_rate = s->sample_rate; st->codec->channels = s->channels; - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ return 0; diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c index 1a8562c016..e6a1e8ba2d 100644 --- a/libavdevice/bktr.c +++ b/libavdevice/bktr.c @@ -25,6 +25,7 @@ */ #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" @@ -275,7 +276,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ret = AVERROR(ENOMEM); goto out; } - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in use */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in use */ s->width = width; s->height = height; diff --git a/libavdevice/fbdev.c b/libavdevice/fbdev.c index ddace67392..7444f47e57 100644 --- a/libavdevice/fbdev.c +++ b/libavdevice/fbdev.c @@ -43,6 +43,7 @@ #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" #include "libavformat/avformat.h" +#include "libavformat/internal.h" struct rgb_pixfmt_map_entry { int bits_per_pixel; @@ -110,7 +111,7 @@ av_cold static int fbdev_read_header(AVFormatContext *avctx, if (!(st = avformat_new_stream(avctx, NULL))) return AVERROR(ENOMEM); - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in microseconds */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in microseconds */ /* NONBLOCK is ignored by the fbdev driver, only set for consistency */ if (avctx->flags & AVFMT_FLAG_NONBLOCK) diff --git a/libavdevice/jack_audio.c b/libavdevice/jack_audio.c index f75c176be9..dbe1771ebf 100644 --- a/libavdevice/jack_audio.c +++ b/libavdevice/jack_audio.c @@ -29,6 +29,7 @@ #include "libavutil/opt.h" #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include "timefilter.h" /** @@ -244,7 +245,7 @@ static int audio_read_header(AVFormatContext *context, AVFormatParameters *param stream->codec->sample_rate = self->sample_rate; stream->codec->channels = self->nports; - av_set_pts_info(stream, 64, 1, 1000000); /* 64 bits pts in us */ + avpriv_set_pts_info(stream, 64, 1, 1000000); /* 64 bits pts in us */ return 0; } diff --git a/libavdevice/libcdio.c b/libavdevice/libcdio.c index 6d0671a609..e00272c115 100644 --- a/libavdevice/libcdio.c +++ b/libavdevice/libcdio.c @@ -92,7 +92,7 @@ static av_cold int read_header(AVFormatContext *ctx, AVFormatParameters *ap) st->duration = s->drive->audio_last_sector - s->drive->audio_first_sector; else if (s->drive->tracks) st->duration = s->drive->disc_toc[s->drive->tracks].dwStartSector; - av_set_pts_info(st, 64, CDIO_CD_FRAMESIZE_RAW, 2*st->codec->channels*st->codec->sample_rate); + avpriv_set_pts_info(st, 64, CDIO_CD_FRAMESIZE_RAW, 2*st->codec->channels*st->codec->sample_rate); for (i = 0; i < s->drive->tracks; i++) { char title[16]; diff --git a/libavdevice/libdc1394.c b/libavdevice/libdc1394.c index bca014fe3c..71f08b137d 100644 --- a/libavdevice/libdc1394.c +++ b/libavdevice/libdc1394.c @@ -22,6 +22,7 @@ #include "config.h" #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include "libavutil/log.h" #include "libavutil/mathematics.h" #include "libavutil/opt.h" @@ -165,7 +166,7 @@ static inline int dc1394_read_common(AVFormatContext *c, AVFormatParameters *ap, ret = AVERROR(ENOMEM); goto out; } - av_set_pts_info(vst, 64, 1, 1000); + avpriv_set_pts_info(vst, 64, 1, 1000); vst->codec->codec_type = AVMEDIA_TYPE_VIDEO; vst->codec->codec_id = CODEC_ID_RAWVIDEO; vst->codec->time_base.den = framerate.num; diff --git a/libavdevice/oss_audio.c b/libavdevice/oss_audio.c index 01d944a163..308fc0df97 100644 --- a/libavdevice/oss_audio.c +++ b/libavdevice/oss_audio.c @@ -40,6 +40,7 @@ #include "libavutil/opt.h" #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" +#include "libavformat/internal.h" #define AUDIO_BLOCK_SIZE 4096 @@ -225,7 +226,7 @@ static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap) st->codec->sample_rate = s->sample_rate; st->codec->channels = s->channels; - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ return 0; } diff --git a/libavdevice/pulse.c b/libavdevice/pulse.c index 41f88b541f..7f7c6dc2ff 100644 --- a/libavdevice/pulse.c +++ b/libavdevice/pulse.c @@ -31,6 +31,7 @@ #include <pulse/error.h> #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include "libavutil/opt.h" #define DEFAULT_CODEC_ID AV_NE(CODEC_ID_PCM_S16BE, CODEC_ID_PCM_S16LE) @@ -108,7 +109,7 @@ static av_cold int pulse_read_header(AVFormatContext *s, st->codec->codec_id = codec_id; st->codec->sample_rate = pd->sample_rate; st->codec->channels = pd->channels; - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ pd->pts = AV_NOPTS_VALUE; pd->frame_duration = (pd->frame_size * 1000000LL * 8) / diff --git a/libavdevice/sndio_dec.c b/libavdevice/sndio_dec.c index ca11661f09..cc74c38a39 100644 --- a/libavdevice/sndio_dec.c +++ b/libavdevice/sndio_dec.c @@ -23,6 +23,7 @@ #include <sndio.h> #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include "libavutil/opt.h" #include "sndio_common.h" @@ -48,7 +49,7 @@ static av_cold int audio_read_header(AVFormatContext *s1, st->codec->sample_rate = s->sample_rate; st->codec->channels = s->channels; - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ return 0; } diff --git a/libavdevice/v4l.c b/libavdevice/v4l.c index d848e2b645..bdfee2df4e 100644 --- a/libavdevice/v4l.c +++ b/libavdevice/v4l.c @@ -30,6 +30,7 @@ #include "libavutil/log.h" #include "libavutil/opt.h" #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include "libavcodec/dsputil.h" #include <unistd.h> #include <fcntl.h> @@ -100,7 +101,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) st = avformat_new_stream(s1, NULL); if (!st) return AVERROR(ENOMEM); - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ video_fd = open(s1->filename, O_RDWR); if (video_fd < 0) { diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 372d0901cc..0c61f46b53 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -30,6 +30,7 @@ #undef __STRICT_ANSI__ //workaround due to broken kernel headers #include "config.h" #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> @@ -585,7 +586,7 @@ static int v4l2_read_header(AVFormatContext *s1, AVFormatParameters *ap) res = AVERROR(ENOMEM); goto out; } - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ if (s->video_size && (res = av_parse_video_size(&s->width, &s->height, s->video_size)) < 0) { av_log(s1, AV_LOG_ERROR, "Could not parse video size '%s'.\n", s->video_size); diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c index 6f11914935..b5baee3b79 100644 --- a/libavdevice/vfwcap.c +++ b/libavdevice/vfwcap.c @@ -20,6 +20,7 @@ */ #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" @@ -396,7 +397,7 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap) } } - av_set_pts_info(st, 32, 1, 1000); + avpriv_set_pts_info(st, 32, 1, 1000); ctx->mutex = CreateMutex(NULL, 0, NULL); if(!ctx->mutex) { diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 7874b81908..5673e5e611 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -37,6 +37,7 @@ #include "config.h" #include "libavformat/avformat.h" +#include "libavformat/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" @@ -198,7 +199,7 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) ret = AVERROR(ENOMEM); goto out; } - av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ + avpriv_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ screen = DefaultScreen(dpy); |