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

codec: dav1d: don't send null data for drain

parent cb827319
......@@ -213,12 +213,15 @@ static int Decode(decoder_t *dec, block_t *block)
int i_ret = VLCDEC_SUCCESS;
int res;
do {
res = dav1d_send_data(p_sys->c, p_data);
if (res < 0 && res != -EAGAIN)
if( p_data )
{
msg_Err(dec, "Decoder feed error %d!", res);
i_ret = VLC_EGENERIC;
break;
res = dav1d_send_data(p_sys->c, p_data);
if (res < 0 && res != -EAGAIN)
{
msg_Err(dec, "Decoder feed error %d!", res);
i_ret = VLC_EGENERIC;
break;
}
}
res = dav1d_get_picture(p_sys->c, &img);
......
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