aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-29 22:26:20 +0100
committerAnton Khirnov <anton@khirnov.net>2023-01-31 09:09:11 +0100
commit61afbc23766f1567857551eb7b2da5f8aab97c4c (patch)
tree9d6704203ed62d0389c126bac681fb65ac6d63fb
parent5c36f4ef8410008d508b9ca348441903a15a6f7c (diff)
downloadffmpeg-61afbc23766f1567857551eb7b2da5f8aab97c4c.tar.gz
fftools/ffmpeg: use correct IO context for -enc_stats_post
-rw-r--r--fftools/ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
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;