]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/xwma.c
asfdec: Check packet_replic_size earlier
[ffmpeg] / libavformat / xwma.c
index 9e100b1b0bee758b737748017fcb8b88e65041c7..94208abc475087b003bef55f70569a23b9af9915 100644 (file)
@@ -69,7 +69,7 @@ static int xwma_read_header(AVFormatContext *s, AVFormatParameters *ap)
     if (tag != MKTAG('f', 'm', 't', ' '))
         return -1;
     size = avio_rl32(pb);
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return AVERROR(ENOMEM);