aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-12-03 00:45:46 +0100
committerClément Bœsch <ubitux@gmail.com>2011-12-03 03:24:32 +0100
commit215b7724e7ef332eab5aff8d1ab6b77a11f47c4f (patch)
tree3ffc80ccf075fd5972f6c2312a313c6bceea39bf /libavdevice
parenteac5987c4f662ab272f6788b5edc233a9525f844 (diff)
downloadffmpeg-215b7724e7ef332eab5aff8d1ab6b77a11f47c4f.tar.gz
lavf: rename remaining av_set_pts_info() to avpriv_set_pts_info().
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/alsa-audio-enc.c3
-rw-r--r--libavdevice/dshow.c4
-rw-r--r--libavdevice/lavfi.c3
-rw-r--r--libavdevice/openal-dec.c3
4 files changed, 8 insertions, 5 deletions
diff --git a/libavdevice/alsa-audio-enc.c b/libavdevice/alsa-audio-enc.c
index 446d7a24e5..fd013160d6 100644
--- a/libavdevice/alsa-audio-enc.c
+++ b/libavdevice/alsa-audio-enc.c
@@ -39,6 +39,7 @@
#include <alsa/asoundlib.h>
+#include "libavformat/internal.h"
#include "avdevice.h"
#include "alsa-audio.h"
@@ -61,7 +62,7 @@ static av_cold int audio_write_header(AVFormatContext *s1)
st->codec->sample_rate, sample_rate);
goto fail;
}
- av_set_pts_info(st, 64, 1, sample_rate);
+ avpriv_set_pts_info(st, 64, 1, sample_rate);
return res;
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index bba1bbaffb..61f0d08a2f 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -21,7 +21,7 @@
#include "libavutil/parseutils.h"
#include "libavutil/opt.h"
-
+#include "libavformat/internal.h"
#include "avdevice.h"
#include "dshow.h"
@@ -739,7 +739,7 @@ dshow_add_device(AVFormatContext *avctx, AVFormatParameters *ap,
codec->channels = fx->nChannels;
}
- av_set_pts_info(st, 64, 1, 10000000);
+ avpriv_set_pts_info(st, 64, 1, 10000000);
ret = 0;
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index cce09c5592..04dc3b233c 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -35,6 +35,7 @@
#include "libavfilter/avfilter.h"
#include "libavfilter/avfiltergraph.h"
#include "libavfilter/buffersink.h"
+#include "libavformat/internal.h"
#include "avdevice.h"
typedef struct {
@@ -231,7 +232,7 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
AVFilterLink *link = lavfi->sinks[lavfi->stream_sink_map[i]]->inputs[0];
AVStream *st = avctx->streams[i];
st->codec->codec_type = link->type;
- av_set_pts_info(st, 64, link->time_base.num, link->time_base.den);
+ avpriv_set_pts_info(st, 64, link->time_base.num, link->time_base.den);
if (link->type == AVMEDIA_TYPE_VIDEO) {
st->codec->codec_id = CODEC_ID_RAWVIDEO;
st->codec->pix_fmt = link->format;
diff --git a/libavdevice/openal-dec.c b/libavdevice/openal-dec.c
index 77b63b5695..17256ca066 100644
--- a/libavdevice/openal-dec.c
+++ b/libavdevice/openal-dec.c
@@ -25,6 +25,7 @@
#include <AL/alc.h>
#include "libavutil/opt.h"
+#include "libavformat/internal.h"
#include "avdevice.h"
typedef struct {
@@ -151,7 +152,7 @@ static int read_header(AVFormatContext *ctx, AVFormatParameters *ap)
}
/* We work in microseconds */
- av_set_pts_info(st, 64, 1, 1000000);
+ avpriv_set_pts_info(st, 64, 1, 1000000);
/* Set codec parameters */
codec = st->codec;