Commit de9b68e2 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: dav1d: proper handling of drain

refs #21568
parent e4701cb6
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment