[vlc-devel] [PATCH 2/2] dav1d: decoder_UpdateVideoFormat() doesn't return VLC_SUCCESS but 0/-1

Steve Lhomme robux4 at ycbcr.xyz
Wed Jun 5 17:49:24 CEST 2019


---
 modules/codec/dav1d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/dav1d.c b/modules/codec/dav1d.c
index eb47d17f8a..87a5b663d0 100644
--- a/modules/codec/dav1d.c
+++ b/modules/codec/dav1d.c
@@ -141,7 +141,7 @@ static int NewPicture(Dav1dPicture *img, void *cookie)
     v->pose = dec->fmt_in.video.pose;
     dec->fmt_out.video.i_chroma = dec->fmt_out.i_codec = FindVlcChroma(img);
 
-    if (decoder_UpdateVideoFormat(dec) == VLC_SUCCESS)
+    if (decoder_UpdateVideoFormat(dec) == 0)
     {
         picture_t *pic = decoder_NewPicture(dec);
         if (likely(pic != NULL))
-- 
2.17.1



More information about the vlc-devel mailing list