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

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


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

diff --git a/modules/codec/aom.c b/modules/codec/aom.c
index e4f26c3916..d4015a5dc4 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -235,7 +235,7 @@ static void OutputFrame(decoder_t *dec, const struct aom_image *img)
     dec->fmt_out.video.multiview_mode = dec->fmt_in.video.multiview_mode;
     dec->fmt_out.video.pose = dec->fmt_in.video.pose;
 
-    if (decoder_UpdateVideoFormat(dec) == VLC_SUCCESS)
+    if (decoder_UpdateVideoFormat(dec) == 0)
     {
         picture_t *pic = decoder_NewPicture(dec);
         if (pic)
-- 
2.17.1



More information about the vlc-devel mailing list