[vlc-devel] commit: Here too. (yeah, we now have video filters in modules/ video_chroma and modules/video_filter) (Antoine Cellerier )

git version control git at videolan.org
Thu Aug 28 19:07:27 CEST 2008


vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Thu Aug 28 19:09:48 2008 +0200| [1e2e68559e32d3ff1079e92ee920d84cfe01d631] | committer: Antoine Cellerier 

Here too. (yeah, we now have video filters in modules/video_chroma and modules/video_filter)

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

 modules/video_filter/rv32.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/rv32.c b/modules/video_filter/rv32.c
index 10c5699..313fd4e 100644
--- a/modules/video_filter/rv32.c
+++ b/modules/video_filter/rv32.c
@@ -69,11 +69,16 @@ static int OpenFilter( vlc_object_t *p_this )
 
     /* XXX Only support RV24 -> RV32 conversion */
     if( p_filter->fmt_in.video.i_chroma != VLC_FOURCC('R','V','2','4') ||
-        p_filter->fmt_out.video.i_chroma != VLC_FOURCC('R', 'V', '3', '2') )
+        (p_filter->fmt_out.video.i_chroma != VLC_FOURCC('R', 'V', '3', '2') &&
+        p_filter->fmt_out.video.i_chroma != VLC_FOURCC('R', 'G', 'B', 'A')) )
     {
         return VLC_EGENERIC;
     }
 
+    if( p_filter->fmt_in.video.i_width != p_filter->fmt_out.video.i_width
+     || p_filter->fmt_in.video.i_height != p_filter->fmt_out.video.i_height )
+        return -1;
+
     /* Allocate the memory needed to store the decoder's structure */
     if( ( p_filter->p_sys = p_sys =
           (filter_sys_t *)malloc(sizeof(filter_sys_t)) ) == NULL )




More information about the vlc-devel mailing list