avctx->flags = AVFMT_FLAG_CUSTOM_IO;
string video_extradata;
- if (global_flags.x264_video_to_http || global_flags.x264_video_to_disk) {
+ if (global_flags.x264_video_to_http) {
video_extradata = x264_encoder->get_global_headers();
#ifdef HAVE_AV1
} else if (global_flags.av1_video_to_http) {