mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-09 10:41:00 +08:00
fftools/ffmpeg: refactor limiting output file size with -fs
Move the file size checking code to ffmpeg_mux. Use the recently introduced of_filesize(), making this code consistent with the size shown by print_report().
This commit is contained in:
@@ -3462,10 +3462,8 @@ static int need_output(void)
|
||||
for (i = 0; i < nb_output_streams; i++) {
|
||||
OutputStream *ost = output_streams[i];
|
||||
OutputFile *of = output_files[ost->file_index];
|
||||
AVFormatContext *os = output_files[ost->file_index]->ctx;
|
||||
|
||||
if (ost->finished ||
|
||||
(os->pb && avio_tell(os->pb) >= of->limit_filesize))
|
||||
if (ost->finished || of_finished(of))
|
||||
continue;
|
||||
if (ost->frame_number >= ost->max_frames) {
|
||||
int j;
|
||||
|
Reference in New Issue
Block a user