History

avfilter/vf_mix: always output frame if array is filled

Paul B Mahol committed 7 years ago

Commit 08b83bf1 parent 9e0e8e11 file · +2 −1Browse files

Unified · Split

libavfilter/vf_mix.c+2−1
@@ -354,7 +354,8 @@ static int tmix_filter_frame(AVFilterLink *inlink, AVFrame *in) · 353 unmodified lines
354354 if (s->nb_frames < s->nb_inputs) {
355355 s->frames[s->nb_frames] = in;
356356 s->nb_frames++;
357− return 0;
357+ if (s->nb_frames < s->nb_inputs)
358+ return 0;
358359 } else {
359360 av_frame_free(&s->frames[0]);
360361 memmove(&s->frames[0], &s->frames[1], sizeof(*s->frames) * (s->nb_inputs - 1));

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