vlc | branch: master | Edward Wang <[email protected]> | Fri Aug 10 
13:25:49 2012 -0400| [01fcf2a339b256b5daeb33490d339c70e747f0f7] | committer: 
Jean-Baptiste Kempf

opencv_wrapper: Fix RGB video passing to OpenCV

Otherwise video comes into OpenCV as virtual garbage.

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

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

diff --git a/modules/video_filter/opencv_wrapper.c 
b/modules/video_filter/opencv_wrapper.c
index dc992da..767a7c3 100644
--- a/modules/video_filter/opencv_wrapper.c
+++ b/modules/video_filter/opencv_wrapper.c
@@ -342,7 +342,7 @@ static void VlcPictureToIplImage( filter_t* p_filter, 
picture_t* p_in )
             //rgb2 gives 3 separate planes, this gives 1 interleaved plane
             //rv24 gives is about 20% faster but gives r&b the wrong way round
             //and I can't think of an easy way to fix this
-            fmt_out.i_chroma = VLC_CODEC_RGB32;
+            fmt_out.i_chroma = VLC_CODEC_RGB24;
         }
         else if (p_sys->i_internal_chroma == GREY)
         {

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to