Support for 8bit uncompressed in AVI files.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 12 Jan 2008 19:02:12 +0000 (19:02 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 12 Jan 2008 19:02:12 +0000 (19:02 +0000)
modules/codec/rawvideo.c
modules/demux/avi/avi.c
modules/video_chroma/grey_yuv.c

index 5cc3ace..a9d2136 100644 (file)
@@ -101,6 +101,7 @@ static int OpenDecoder( vlc_object_t *p_this )
 
         /* Packed YUV */
         case VLC_FOURCC('Y','U','Y','2'):
+        case VLC_FOURCC('Y','8','0','0'):
         case VLC_FOURCC('U','Y','V','Y'):
         case VLC_FOURCC('H','D','Y','C'):
 
index ed000f9..1f536c7 100644 (file)
@@ -438,6 +438,9 @@ static int Open( vlc_object_t * p_this )
                         case 9:
                             tk->i_codec = VLC_FOURCC( 'Y', 'V', 'U', '9' ); /* <- TODO check that */
                             break;
+                        case 8:
+                            tk->i_codec = VLC_FOURCC('Y','8','0','0');
+                            break;
                     }
                     es_format_Init( &fmt, VIDEO_ES, tk->i_codec );
 
index 457895f..5c2e2d1 100644 (file)
@@ -64,6 +64,8 @@ static int Activate( vlc_object_t *p_this )
 
     switch( p_vout->render.i_chroma )
     {
+        case VLC_FOURCC('Y','8','0','0'):
+            p_vout->render.i_chroma = VLC_FOURCC('G','R','E','Y');
         case VLC_FOURCC('G','R','E','Y'):
             switch( p_vout->output.i_chroma )
             {