[FFmpeg-devel] [PATCH 2/3] fftools/ffmpeg: use correct IO context for -enc_stats_post

Anton Khirnov anton at khirnov.net
Sun Jan 29 23:33:52 EET 2023


---
 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;
 
-- 
2.35.1



More information about the ffmpeg-devel mailing list