Commit 5718c840 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Support for 8bit uncompressed in AVI files.

parent 6a8456a6
...@@ -101,6 +101,7 @@ static int OpenDecoder( vlc_object_t *p_this ) ...@@ -101,6 +101,7 @@ static int OpenDecoder( vlc_object_t *p_this )
/* Packed YUV */ /* Packed YUV */
case VLC_FOURCC('Y','U','Y','2'): case VLC_FOURCC('Y','U','Y','2'):
case VLC_FOURCC('Y','8','0','0'):
case VLC_FOURCC('U','Y','V','Y'): case VLC_FOURCC('U','Y','V','Y'):
case VLC_FOURCC('H','D','Y','C'): case VLC_FOURCC('H','D','Y','C'):
......
...@@ -438,6 +438,9 @@ static int Open( vlc_object_t * p_this ) ...@@ -438,6 +438,9 @@ static int Open( vlc_object_t * p_this )
case 9: case 9:
tk->i_codec = VLC_FOURCC( 'Y', 'V', 'U', '9' ); /* <- TODO check that */ tk->i_codec = VLC_FOURCC( 'Y', 'V', 'U', '9' ); /* <- TODO check that */
break; break;
case 8:
tk->i_codec = VLC_FOURCC('Y','8','0','0');
break;
} }
es_format_Init( &fmt, VIDEO_ES, tk->i_codec ); es_format_Init( &fmt, VIDEO_ES, tk->i_codec );
......
...@@ -64,6 +64,8 @@ static int Activate( vlc_object_t *p_this ) ...@@ -64,6 +64,8 @@ static int Activate( vlc_object_t *p_this )
switch( p_vout->render.i_chroma ) 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'): case VLC_FOURCC('G','R','E','Y'):
switch( p_vout->output.i_chroma ) switch( p_vout->output.i_chroma )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment