]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/apc.c
mxfdec: Make sure x < index_table->nb_ptses
[ffmpeg] / libavformat / apc.c
index 19de7f5c309210a78a7f67bb3eaf749ba1dd205d..5d7bb6f31cff41013ee32ada3e2a8941c5c19bb5 100644 (file)
@@ -39,7 +39,7 @@ static int apc_read_header(AVFormatContext *s, AVFormatParameters *ap)
     avio_rl32(pb); /* _APC */
     avio_rl32(pb); /* 1.20 */
 
-    st = av_new_stream(s, 0);
+    st = avformat_new_stream(s, NULL);
     if (!st)
         return AVERROR(ENOMEM);