]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpc.c
asfdec: Check packet_replic_size earlier
[ffmpeg] / libavformat / mpc.c
index 8027241b89adfa19dac080ed9b1cff0b50ee1753..f377e1f9905087642dd399622f02f04e7a6215c0 100644 (file)
@@ -84,7 +84,7 @@ static int mpc_read_header(AVFormatContext *s, AVFormatParameters *ap)
     c->curbits = 8;
     c->frames_noted = 0;
 
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return AVERROR(ENOMEM);
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;