Every cap. filter: fixed wrong command order

This commit is contained in:
Martin Pulec
2019-06-17 10:15:59 +02:00
parent 1c8e70e93e
commit c45924eb8a

View File

@@ -128,6 +128,8 @@ static struct video_frame *filter(void *state, struct video_frame *in)
{
struct state_every *s = state;
s->current = (s->current + 1) % s->num;
if (s->current >= s->denom) {
VIDEO_FRAME_DISPOSE(in);
return NULL;
@@ -137,8 +139,6 @@ static struct video_frame *filter(void *state, struct video_frame *in)
memcpy(frame->tiles, in->tiles, in->tile_count * sizeof(struct tile));
frame->fps /= (double) s->num / s->denom;
s->current = (s->current + 1) % s->num;
frame->callbacks.dispose = dispose_frame;
frame->callbacks.dispose_udata = in;