summaryrefslogtreecommitdiff
path: root/libavformat/anm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/anm.c')
-rw-r--r--libavformat/anm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/anm.c b/libavformat/anm.c
index f24caf16b2..a89bf3e719 100644
--- a/libavformat/anm.c
+++ b/libavformat/anm.c
@@ -97,7 +97,7 @@ static int read_header(AVFormatContext *s,
return AVERROR_INVALIDDATA;
/* video stream */
- st = av_new_stream(s, 0);
+ st = avformat_new_stream(s, NULL);
if (!st)
return AVERROR(ENOMEM);
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;