]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/jvdec.c
ffmpeg: preserve avg_frame_rate on stream copy.
[ffmpeg] / libavformat / jvdec.c
index 42aae6f57a18225d29f324a11c90bd1b9de9562b..7e1a6ce7b426d11fecdc0b62332cf62d413294f6 100644 (file)
@@ -69,8 +69,8 @@ static int read_header(AVFormatContext *s,
 
     avio_skip(pb, 80);
 
-    ast = av_new_stream(s, 0);
-    vst = av_new_stream(s, 1);
+    ast = avformat_new_stream(s, NULL);
+    vst = avformat_new_stream(s, NULL);
     if (!ast || !vst)
         return AVERROR(ENOMEM);