You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
992 B
31 lines
992 B
5 years ago
|
--- a/modules/codec/dav1d.c
|
||
|
+++ b/modules/codec/dav1d.c
|
||
|
@@ -223,7 +223,7 @@
|
||
|
if( p_data )
|
||
|
{
|
||
|
res = dav1d_send_data(p_sys->c, p_data);
|
||
|
- if (res < 0 && res != DAV1D_ERR(EAGAIN))
|
||
|
+ if (res < 0 && res != -EAGAIN)
|
||
|
{
|
||
|
msg_Err(dec, "Decoder feed error %d!", res);
|
||
|
i_ret = VLC_EGENERIC;
|
||
|
@@ -248,15 +248,14 @@
|
||
|
decoder_QueueVideo(dec, pic);
|
||
|
dav1d_picture_unref(&img);
|
||
|
}
|
||
|
- else if (res != DAV1D_ERR(EAGAIN))
|
||
|
+ else if (res != -EAGAIN)
|
||
|
{
|
||
|
msg_Warn(dec, "Decoder error %d!", res);
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
/* on drain, we must ignore the 1st EAGAIN */
|
||
|
- if(!b_draining && (res == DAV1D_ERR(EAGAIN) || res == 0)
|
||
|
- && (p_data == NULL||b_eos))
|
||
|
+ if(!b_draining && (res == -EAGAIN || res == 0) && (p_data == NULL||b_eos))
|
||
|
{
|
||
|
b_draining = true;
|
||
|
res = 0;
|
||
|
|