vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jan 15 12:54:22 
2019 +0100| [c49ec96f05276f2edd7ad704800c8fa43c0797c7] | committer: Steve Lhomme

dav1d: decoder_UpdateVideoFormat() doesn't return VLC_SUCCESS but 0/-1

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c49ec96f05276f2edd7ad704800c8fa43c0797c7
---

 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))

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to