[vlc-devel] [PATCH 02/14] swscale: bail out if 3D stereo conversion is requested

Felix Abecassis felix.abecassis at gmail.com
Tue Sep 9 19:03:23 CEST 2014


---
 modules/video_chroma/swscale.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/video_chroma/swscale.c b/modules/video_chroma/swscale.c
index 8ce512c..e43f639 100644
--- a/modules/video_chroma/swscale.c
+++ b/modules/video_chroma/swscale.c
@@ -362,6 +362,9 @@ static int Init( filter_t *p_filter )
     if( p_fmti->orientation != p_fmto->orientation )
         return VLC_EGENERIC;
 
+    if( p_fmti->stereo.mode != p_fmto->stereo.mode )
+        return VLC_EGENERIC;
+
     if( video_format_IsSimilar( p_fmti, &p_sys->fmt_in ) &&
         video_format_IsSimilar( p_fmto, &p_sys->fmt_out ) &&
         p_sys->ctx )
-- 
1.9.1




More information about the vlc-devel mailing list