aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_mux_init.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-03-27 07:37:29 +0200
committerAnton Khirnov <anton@khirnov.net>2023-04-13 15:11:56 +0200
commit87ae84e4afb2d137b1e229250b576226b1433a79 (patch)
tree9b149408c15a399c6853a76d4506e946f984f6d3 /fftools/ffmpeg_mux_init.c
parent710da200fc19d2e72723e0363b0d23ba8c8027a7 (diff)
downloadffmpeg-87ae84e4afb2d137b1e229250b576226b1433a79.tar.gz
fftools/ffmpeg: move OutputStream.sq_frame to Encoder
It is audio/video encoding-only and does not need to be visible outside of ffmpeg_enc.c
Diffstat (limited to 'fftools/ffmpeg_mux_init.c')
-rw-r--r--fftools/ffmpeg_mux_init.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c
index 6c53a8810d..ee5829c7fe 100644
--- a/fftools/ffmpeg_mux_init.c
+++ b/fftools/ffmpeg_mux_init.c
@@ -1505,10 +1505,6 @@ static int setup_sync_queues(Muxer *mux, AVFormatContext *oc, int64_t buf_size_u
if (ost->sq_idx_encode < 0)
return ost->sq_idx_encode;
- ost->sq_frame = av_frame_alloc();
- if (!ost->sq_frame)
- return AVERROR(ENOMEM);
-
if (ms->max_frames != INT64_MAX)
sq_limit_frames(of->sq_encode, ost->sq_idx_encode, ms->max_frames);
}