aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/libmodplug.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-11-05 13:11:18 +0100
committerClément Bœsch <ubitux@gmail.com>2011-11-05 15:07:19 +0100
commit0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c (patch)
treeaa4774ed8070f10d86a16ec814cd39deda0ad8a1 /libavformat/libmodplug.c
parent454f1657288e75a9797381c8a26598674ea9bd68 (diff)
downloadffmpeg-0e5ecd806eadf7dd0ec645b1b69310ee76c0cd1c.tar.gz
Replace remaining av_new_stream() with avformat_new_stream().
Diffstat (limited to 'libavformat/libmodplug.c')
-rw-r--r--libavformat/libmodplug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/libmodplug.c b/libavformat/libmodplug.c
index 8b4e4f3bcd..ec9acd6c92 100644
--- a/libavformat/libmodplug.c
+++ b/libavformat/libmodplug.c
@@ -217,7 +217,7 @@ static int modplug_read_header(AVFormatContext *s, AVFormatParameters *ap)
if (!modplug->f)
return AVERROR_INVALIDDATA;
- st = av_new_stream(s, 0);
+ st = avformat_new_stream(s, NULL);
if (!st)
return AVERROR(ENOMEM);
av_set_pts_info(st, 64, 1, 1000);
@@ -231,7 +231,7 @@ static int modplug_read_header(AVFormatContext *s, AVFormatParameters *ap)
modplug->ts_per_packet = 1000*AUDIO_PKT_SIZE / (4*44100.);
if (modplug->video_stream) {
- AVStream *vst = av_new_stream(s, 1);
+ AVStream *vst = avformat_new_stream(s, NULL);
if (!vst)
return AVERROR(ENOMEM);
av_set_pts_info(vst, 64, 1, 1000);