]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/rtpenc_chain.c
build: fix standalone compilation of OMA muxer
[ffmpeg] / libavformat / rtpenc_chain.c
index dc8ed30c77618d335639baa873023df5c30d2dd5..b9d1690008d8ee11b9aad35746c63a715f049572 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. */