[vlc-commits] i422_yuy2: use VLC_EGENERIC instead of -1

Alexandre Janniaux git at videolan.org
Thu Oct 8 10:28:13 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Sep  2 18:32:54 2020 +0200| [7dd3f4971c3e67b70fee384c51351ce169c0a779] | committer: Steve Lhomme

i422_yuy2: use VLC_EGENERIC instead of -1

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

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

diff --git a/modules/video_chroma/i422_yuy2.c b/modules/video_chroma/i422_yuy2.c
index 0dc990f8f8..416dbfff02 100644
--- a/modules/video_chroma/i422_yuy2.c
+++ b/modules/video_chroma/i422_yuy2.c
@@ -103,7 +103,7 @@ static int Activate( vlc_object_t *p_this )
     if( (p_filter->fmt_in.video.i_x_offset + p_filter->fmt_in.video.i_visible_width) & 1
      || (p_filter->fmt_in.video.i_y_offset + p_filter->fmt_in.video.i_visible_height) & 1 )
     {
-        return -1;
+        return VLC_EGENERIC;
     }
 
     if( p_filter->fmt_in.video.orientation != p_filter->fmt_out.video.orientation )



More information about the vlc-commits mailing list