mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
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.
This commit is contained in:
parent
d579a70291
commit
a7028d7fa8
@ -254,7 +254,7 @@ finish:
|
|||||||
return (void*)(intptr_t)ret;
|
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;
|
Muxer *mux = of->mux;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
@ -324,7 +324,7 @@ static int of_submit_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (of->mux->tq) {
|
if (of->mux->tq) {
|
||||||
return submit_packet(of, ost, pkt);
|
return thread_submit_packet(of, ost, pkt);
|
||||||
} else {
|
} else {
|
||||||
/* the muxer is not initialized yet, buffer the packet */
|
/* the muxer is not initialized yet, buffer the packet */
|
||||||
ret = queue_packet(of, ost, pkt);
|
ret = queue_packet(of, ost, pkt);
|
||||||
@ -447,7 +447,7 @@ static int thread_start(OutputFile *of)
|
|||||||
ost->mux_timebase = ost->st->time_base;
|
ost->mux_timebase = ost->st->time_base;
|
||||||
|
|
||||||
while (av_fifo_read(ms->muxing_queue, &pkt, 1) >= 0) {
|
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) {
|
if (pkt) {
|
||||||
ms->muxing_queue_data_size -= pkt->size;
|
ms->muxing_queue_data_size -= pkt->size;
|
||||||
av_packet_free(&pkt);
|
av_packet_free(&pkt);
|
||||||
|
Loading…
Reference in New Issue
Block a user