aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-12-01 17:28:36 +0100
committerAnton Khirnov <anton@khirnov.net>2011-12-01 17:28:36 +0100
commit74e96eb77e7ce6da6917d8fb5ae1151b90eb5e4b (patch)
tree7302b20be4649f1fdd0720f4c96a9977fb9ebfb0
parent37fed0e635942306a43b3b546c9c6385a43d5934 (diff)
downloadffmpeg-74e96eb77e7ce6da6917d8fb5ae1151b90eb5e4b.tar.gz
pmpdec: don't use deprecated av_set_pts_info.
-rw-r--r--libavformat/pmpdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c
index a367344b16..96c7048570 100644
--- a/libavformat/pmpdec.c
+++ b/libavformat/pmpdec.c
@@ -21,6 +21,7 @@
#include "libavutil/intreadwrite.h"
#include "avformat.h"
+#include "internal.h"
typedef struct PMPContext {
int cur_stream;
@@ -70,7 +71,7 @@ static int pmp_header(AVFormatContext *s, AVFormatParameters *ap)
tb_num = avio_rl32(pb);
tb_den = avio_rl32(pb);
- av_set_pts_info(vst, 32, tb_num, tb_den);
+ avpriv_set_pts_info(vst, 32, tb_num, tb_den);
vst->nb_frames = index_cnt;
vst->duration = index_cnt;
@@ -98,7 +99,7 @@ static int pmp_header(AVFormatContext *s, AVFormatParameters *ap)
ast->codec->codec_id = audio_codec_id;
ast->codec->channels = channels;
ast->codec->sample_rate = srate;
- av_set_pts_info(ast, 32, 1, srate);
+ avpriv_set_pts_info(ast, 32, 1, srate);
}
pos = avio_tell(pb) + 4 * index_cnt;
for (i = 0; i < index_cnt; i++) {