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
127 fs->opt_shortest = 1;127 fs->opt_shortest = 1;
128 fs->opt_eof_action = EOF_ACTION_ENDALL;128 fs->opt_eof_action = EOF_ACTION_ENDALL;
129 }129 }
130 if (fs->opt_shortest) {
131 for (i = 0; i < fs->nb_in; i++)
132 fs->in[i].after = EXT_STOP;
133 }
134 if (!fs->opt_repeatlast) {130 if (!fs->opt_repeatlast) {
135 for (i = 1; i < fs->nb_in; i++) {131 for (i = 1; i < fs->nb_in; i++) {
136 fs->in[i].after = EXT_NULL;132 fs->in[i].after = EXT_NULL;
137 fs->in[i].sync = 0;133 fs->in[i].sync = 0;
138 }134 }
139 }135 }
136 if (fs->opt_shortest) {
137 for (i = 0; i < fs->nb_in; i++)
138 fs->in[i].after = EXT_STOP;
139 }
140 140
141 if (!fs->time_base.num) {141 if (!fs->time_base.num) {
142 for (i = 0; i < fs->nb_in; i++) {142 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