History

avformat/movenc: Reduce loop iterations in mov_flush_fragment

Zhao Zhili committed 1 year ago

Commit 8ea2b991 parent 56cf1c01 file · +1 −1Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/movenc.c+1−1
@@ -6504,7 +6504,7 @@ static int mov_flush_fragment(AVFormatContext *s, int force) · 6503 unmodified lines
6504 av_rescale(mov->tracks[first_track].cluster[0].dts, AV_TIME_BASE, mov->tracks[first_track].timescale),6504 av_rescale(mov->tracks[first_track].cluster[0].dts, AV_TIME_BASE, mov->tracks[first_track].timescale),
6505 (has_video ? starts_with_key : mov->tracks[first_track].cluster[0].flags & MOV_SYNC_SAMPLE) ? AVIO_DATA_MARKER_SYNC_POINT : AVIO_DATA_MARKER_BOUNDARY_POINT);6505 (has_video ? starts_with_key : mov->tracks[first_track].cluster[0].flags & MOV_SYNC_SAMPLE) ? AVIO_DATA_MARKER_SYNC_POINT : AVIO_DATA_MARKER_BOUNDARY_POINT);
6506 6506
6507 for (i = 0; i < mov->nb_tracks; i++) {6507 for (i = first_track; i < mov->nb_tracks; i++) {
6508 MOVTrack *track = &mov->tracks[i];6508 MOVTrack *track = &mov->tracks[i];
6509 int buf_size, write_moof = 1, moof_tracks = -1;6509 int buf_size, write_moof = 1, moof_tracks = -1;
6510 uint8_t *buf;6510 uint8_t *buf;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t