History

avfilter/framesync: fix shortest with eof_action=pass

Shifted check of shortest to after repeatlast, to ensure shortest=1 is always honoured.

Gyan Doshi committed 7 years ago

Commit 3be44901 parent 0fef4121 file · +4 −4Browse files

Showing the changes to libavfilter/framesync.c (1 of 1 file). Show all

Unified · Split

libavfilter/framesync.c+4−4
@@ -127,16 +127,16 @@ int ff_framesync_configure(FFFrameSync *fs) · 126 unmodified lines
127127 fs->opt_shortest = 1;
128128 fs->opt_eof_action = EOF_ACTION_ENDALL;
129129 }
130− if (fs->opt_shortest) {
131− for (i = 0; i < fs->nb_in; i++)
132− fs->in[i].after = EXT_STOP;
133− }
134130 if (!fs->opt_repeatlast) {
135131 for (i = 1; i < fs->nb_in; i++) {
136132 fs->in[i].after = EXT_NULL;
137133 fs->in[i].sync = 0;
138134 }
139135 }
136+ if (fs->opt_shortest) {
137+ for (i = 0; i < fs->nb_in; i++)
138+ fs->in[i].after = EXT_STOP;
139+ }
140140
141141 if (!fs->time_base.num) {
142142 for (i = 0; i < fs->nb_in; i++) {

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