summaryrefslogtreecommitdiff
path: root/libavformat/mxg.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-11-29 19:28:15 +0100
committerAnton Khirnov <anton@khirnov.net>2011-11-30 20:34:45 +0100
commitc3f9ebf74371b63fba0e7491e61904bbd165cd0f (patch)
treecad6d000dccf25ecea1db16f1befb17f79d13c33 /libavformat/mxg.c
parent06d7325ab1fcc009f0183be3a0b0504f6d99edfb (diff)
lavf: make av_set_pts_info private.
It's supposed to be called only from (de)muxers.
Diffstat (limited to 'libavformat/mxg.c')
-rw-r--r--libavformat/mxg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/mxg.c b/libavformat/mxg.c
index 2b69f7204f..a74036436f 100644
--- a/libavformat/mxg.c
+++ b/libavformat/mxg.c
@@ -22,6 +22,7 @@
#include "libavutil/intreadwrite.h"
#include "libavcodec/mjpeg.h"
#include "avformat.h"
+#include "internal.h"
#include "avio.h"
#define DEFAULT_PACKET_SIZE 1024
@@ -47,7 +48,7 @@ static int mxg_read_header(AVFormatContext *s, AVFormatParameters *ap)
return AVERROR(ENOMEM);
video_st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
video_st->codec->codec_id = CODEC_ID_MXPEG;
- av_set_pts_info(video_st, 64, 1, 1000000);
+ avpriv_set_pts_info(video_st, 64, 1, 1000000);
audio_st = avformat_new_stream(s, NULL);
if (!audio_st)
@@ -58,7 +59,7 @@ static int mxg_read_header(AVFormatContext *s, AVFormatParameters *ap)
audio_st->codec->sample_rate = 8000;
audio_st->codec->bits_per_coded_sample = 8;
audio_st->codec->block_align = 1;
- av_set_pts_info(audio_st, 64, 1, 1000000);
+ avpriv_set_pts_info(audio_st, 64, 1, 1000000);
mxg->soi_ptr = mxg->buffer_ptr = mxg->buffer = 0;
mxg->buffer_size = 0;