diff --git a/libavformat/segment.c b/libavformat/segment.c
index 88d80a41b156da40bc50c05f4a490127fb8b8002..0c644d48aef9145891fdc5c13b50347aca7fb64b 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -144,6 +144,7 @@ static int seg_write_header(AVFormatContext *s)
         goto fail;
     }
 
+    oc->interrupt_callback = s->interrupt_callback;
     seg->avf = oc;
 
     oc->streams = s->streams;