Commit 737ec46d authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

theora: Add support for YUV422 and YUV444 output of libtheora . This fixes sample

http://v2v.cc/~j/theora_testsuite/mobile_itu601_i_422.ogg in ticket #1456
parent d5e3db1a
...@@ -283,6 +283,22 @@ static int ProcessHeaders( decoder_t *p_dec ) ...@@ -283,6 +283,22 @@ static int ProcessHeaders( decoder_t *p_dec )
} }
/* Set output properties */ /* Set output properties */
switch( p_sys->ti.pixelformat )
{
case OC_PF_420:
p_dec->fmt_out.i_codec = VLC_FOURCC( 'I','4','2','0' );
break;
case OC_PF_422:
p_dec->fmt_out.i_codec = VLC_FOURCC( 'I','4','2','2' );
break;
case OC_PF_444:
p_dec->fmt_out.i_codec = VLC_FOURCC( 'I','4','4','4' );
break;
case OC_PF_RSVD:
default:
msg_Err( p_dec, "unknown chroma in theora sample" );
break;
}
p_dec->fmt_out.video.i_width = p_sys->ti.width; p_dec->fmt_out.video.i_width = p_sys->ti.width;
p_dec->fmt_out.video.i_height = p_sys->ti.height; p_dec->fmt_out.video.i_height = p_sys->ti.height;
if( p_sys->ti.frame_width && p_sys->ti.frame_height ) if( p_sys->ti.frame_width && p_sys->ti.frame_height )
......
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