[vlc-commits] dav1d: decoder_UpdateVideoFormat() doesn't return VLC_SUCCESS but 0/-1
Steve Lhomme
git at videolan.org
Thu Jun 6 12:38:51 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 15 12:54:22 2019 +0100| [5922c9d19e50e1f94fe538adb763103af41b95a1] | 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=5922c9d19e50e1f94fe538adb763103af41b95a1
---
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))
More information about the vlc-commits
mailing list