mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
fftools/ffmpeg_mux: split of_write_packet()
It is currently called from two places: - output_packet() in ffmpeg.c, which submits the newly available output packet to the muxer - from of_check_init() in ffmpeg_mux.c after the header has been written, to flush the muxing queue Some packets will thus be processed by this function twice, so it requires an extra parameter to indicate the place it is called from and avoid modifying some state twice. This is fragile and hard to follow, so split this function into two. Also rename of_write_packet() to of_submit_packet() to better reflect its new purpose.
This commit is contained in:
parent
6999a3cb18
commit
ec00b005f9
3 changed files with 37 additions and 33 deletions
|
|
@ -694,8 +694,7 @@ int of_check_init(OutputFile *of);
|
|||
int of_write_trailer(OutputFile *of);
|
||||
void of_close(OutputFile **pof);
|
||||
|
||||
void of_write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost,
|
||||
int unqueue);
|
||||
void of_submit_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost);
|
||||
int of_finished(OutputFile *of);
|
||||
int64_t of_filesize(OutputFile *of);
|
||||
AVChapter * const *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue