mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-17 22:31:18 +08:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user