[FFmpeg-cvslog] fftools/ffmpeg: use correct IO context for -enc_stats_post

Anton Khirnov git at videolan.org
Tue Jan 31 10:36:15 EET 2023


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Jan 29 22:26:20 2023 +0100| [61afbc23766f1567857551eb7b2da5f8aab97c4c] | committer: Anton Khirnov

fftools/ffmpeg: use correct IO context for -enc_stats_post

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61afbc23766f1567857551eb7b2da5f8aab97c4c
---

 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;
 



More information about the ffmpeg-cvslog mailing list