]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpenc_chain.c
segafilm: Check for memory allocation failures in segafilm demuxer.
[ffmpeg] / libavformat / rtpenc_chain.c
index 7f1a8868eb57a6a376df4124beca78eb33562d41..ed96d72f625c180d77b27155181cd06587a673b7 100644 (file)
@@ -67,7 +67,7 @@ AVFormatContext *ff_rtp_chain_mux_open(AVFormatContext *s, AVStream *st,
         ffio_fdopen(&rtpctx->pb, handle);
     } else
         ffio_open_dyn_packet_buf(&rtpctx->pb, packet_size);
-    ret = av_write_header(rtpctx);
+    ret = avformat_write_header(rtpctx, NULL);
 
     if (ret) {
         if (handle) {