]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/cdg.c
asfdec: Check packet_replic_size earlier
[ffmpeg] / libavformat / cdg.c
index 1453b63b1d915dc0785f3219e0e7d5964c528228..75f1fb24c9179bf7bcfa76a520f7ca4361a3d837 100644 (file)
@@ -28,7 +28,7 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
     AVStream *vst;
     int ret;
 
-    vst = av_new_stream(s, 0);
+    vst = avformat_new_stream(s, NULL);
     if (!vst)
         return AVERROR(ENOMEM);