]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpenc_chain.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavformat / rtpenc_chain.c
index df7b9957b01a6fbf4c8d93594ff9ded8c3fb10e9..8a5adf54ed89de9b6af7cbf88742d29cb41cb9af 100644 (file)
@@ -43,10 +43,12 @@ AVFormatContext *ff_rtp_chain_mux_open(AVFormatContext *s, AVStream *st,
         return NULL;
 
     rtpctx->oformat = rtp_format;
-    if (!av_new_stream(rtpctx, 0)) {
+    if (!avformat_new_stream(rtpctx, NULL)) {
         av_free(rtpctx);
         return NULL;
     }
+    /* Pass the interrupt callback on */
+    rtpctx->interrupt_callback = s->interrupt_callback;
     /* Copy the max delay setting; the rtp muxer reads this. */
     rtpctx->max_delay = s->max_delay;
     /* Copy other stream parameters. */