From cffe83e32f63e486a83e13c7bc2ac10c4956a7f2 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 20 Oct 2005 20:43:28 +0000 Subject: [PATCH] fix wrong pixel formats used --- stepmania/src/arch/MovieTexture/MovieTexture_Theora.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/arch/MovieTexture/MovieTexture_Theora.cpp b/stepmania/src/arch/MovieTexture/MovieTexture_Theora.cpp index f28965ea3a..796129170c 100644 --- a/stepmania/src/arch/MovieTexture/MovieTexture_Theora.cpp +++ b/stepmania/src/arch/MovieTexture/MovieTexture_Theora.cpp @@ -231,9 +231,9 @@ void MovieDecoder_Theora::ConvertToSurface( RageSurface *pSurface ) const /* XXX: non-zero offset untested */ int iUVOffsetX = m_TheoraInfo.offset_x; int iUVOffsetY = m_TheoraInfo.offset_y; - if( m_InputPixFmt == OC_PF_420 || m_InputPixFmt == OC_PF_422 ) + if( m_InputPixFmt == avcodec::PIX_FMT_YUV420P || avcodec::PIX_FMT_YUV422P ) iUVOffsetX /= 2; - if( m_InputPixFmt == OC_PF_420 ) + if( m_InputPixFmt == avcodec::PIX_FMT_YUV420P ) iUVOffsetY /= 2; avcodec::AVPicture YUVIn;