fftools/ffmpeg: use correct IO context for -enc_stats_post

This commit is contained in:
Anton Khirnov 2023-01-29 22:26:20 +01:00
parent 5c36f4ef84
commit 61afbc2376
1 changed files with 1 additions and 1 deletions

View File

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