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

Felix Abecassis felix.abecassis at gmail.com
Tue Sep 9 19:03:24 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..4b753da 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_format.mode != p_fmto->stereo_format.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