fftools/ffmpeg_mux: move muxing queue fields from OutputStream to MuxStream

They are private to the muxer and do not need to be visible outside of
it.
This commit is contained in:
Anton Khirnov
2022-10-14 11:34:26 +02:00
parent f0cd68eea0
commit c5d7b6f49b
4 changed files with 11 additions and 11 deletions

View File

@@ -264,8 +264,8 @@ static int queue_packet(Muxer *mux, OutputStream *ost, AVPacket *pkt)
size_t cur_size = av_fifo_can_read(ms->muxing_queue);
size_t pkt_size = pkt ? pkt->size : 0;
unsigned int are_we_over_size =
(ms->muxing_queue_data_size + pkt_size) > ost->muxing_queue_data_threshold;
size_t limit = are_we_over_size ? ost->max_muxing_queue_size : SIZE_MAX;
(ms->muxing_queue_data_size + pkt_size) > ms->muxing_queue_data_threshold;
size_t limit = are_we_over_size ? ms->max_muxing_queue_size : SIZE_MAX;
size_t new_size = FFMIN(2 * cur_size, limit);
if (new_size <= cur_size) {