Skip to content
Snippets Groups Projects
Commit de9b68e2 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

codec: dav1d: proper handling of drain

refs #21568
parent e4701cb6
No related branches found
No related tags found
No related merge requests found
......@@ -247,6 +247,13 @@ static int Decode(decoder_t *dec, block_t *block)
i_ret = VLC_EGENERIC;
break;
}
/* on drain, we must ignore the 1st EAGAIN */
if(!b_draining && (res == -EAGAIN || res == 0) && (p_data == NULL))
{
b_draining = true;
res = 0;
}
} while (res == 0 || (p_data && p_data->sz != 0));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment