aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/ffmpeg_mux.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-10-11 12:34:31 +0200
committerAnton Khirnov <anton@khirnov.net>2022-10-18 13:57:42 +0200
commita7028d7fa8b89459681d43a70e69dacda706da72 (patch)
treec46484febaf8859b07e5abdc2b94170596e9e1d6 /fftools/ffmpeg_mux.c
parentd579a70291dcda78080f7bd7a9dabd80a578879a (diff)
downloadffmpeg-a7028d7fa8b89459681d43a70e69dacda706da72.tar.gz
fftools/ffmpeg_mux: rename submit_packet() to thread_submit_packet()
This is more descriptive, and the submit_packet() name will be reused in following commits.
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r--fftools/ffmpeg_mux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c
index 6e9cbb4bab..7762038b1d 100644
--- a/fftools/ffmpeg_mux.c
+++ b/fftools/ffmpeg_mux.c
@@ -254,7 +254,7 @@ finish:
return (void*)(intptr_t)ret;
}
-static int submit_packet(OutputFile *of, OutputStream *ost, AVPacket *pkt)
+static int thread_submit_packet(OutputFile *of, OutputStream *ost, AVPacket *pkt)
{
Muxer *mux = of->mux;
int ret = 0;
@@ -324,7 +324,7 @@ static int of_submit_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost)
int ret;
if (of->mux->tq) {
- return submit_packet(of, ost, pkt);
+ return thread_submit_packet(of, ost, pkt);
} else {
/* the muxer is not initialized yet, buffer the packet */
ret = queue_packet(of, ost, pkt);
@@ -447,7 +447,7 @@ static int thread_start(OutputFile *of)
ost->mux_timebase = ost->st->time_base;
while (av_fifo_read(ms->muxing_queue, &pkt, 1) >= 0) {
- ret = submit_packet(of, ost, pkt);
+ ret = thread_submit_packet(of, ost, pkt);
if (pkt) {
ms->muxing_queue_data_size -= pkt->size;
av_packet_free(&pkt);