]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/bfi.c
ffmpeg: preserve avg_frame_rate on stream copy.
[ffmpeg] / libavformat / bfi.c
index 05ace473d01ff928c7e643ab6037a1ac8b313191..c6371049c66f99b96b4695e5b55dd4d581ce8ee6 100644 (file)
@@ -55,12 +55,12 @@ static int bfi_read_header(AVFormatContext * s, AVFormatParameters * ap)
     int fps, chunk_header;
 
     /* Initialize the video codec... */
-    vstream = av_new_stream(s, 0);
+    vstream = avformat_new_stream(s, NULL);
     if (!vstream)
         return AVERROR(ENOMEM);
 
     /* Initialize the audio codec... */
-    astream = av_new_stream(s, 0);
+    astream = avformat_new_stream(s, NULL);
     if (!astream)
         return AVERROR(ENOMEM);