From 61afbc23766f1567857551eb7b2da5f8aab97c4c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 29 Jan 2023 22:26:20 +0100 Subject: [PATCH] fftools/ffmpeg: use correct IO context for -enc_stats_post --- fftools/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 9884e0c6c6..3ad432ff54 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -803,7 +803,7 @@ static void update_video_stats(OutputStream *ost, const AVPacket *pkt, int write static void enc_stats_write(OutputStream *ost, EncStats *es, const AVFrame *frame, const AVPacket *pkt) { - AVIOContext *io = ost->enc_stats_pre.io; + AVIOContext *io = es->io; AVRational tb = ost->enc_ctx->time_base; int64_t pts = frame ? frame->pts : pkt->pts;