fix wrong pixel formats used

This commit is contained in:
Glenn Maynard
2005-10-20 20:43:28 +00:00
parent a9e940560b
commit cffe83e32f
@@ -231,9 +231,9 @@ void MovieDecoder_Theora::ConvertToSurface( RageSurface *pSurface ) const
/* XXX: non-zero offset untested */ /* XXX: non-zero offset untested */
int iUVOffsetX = m_TheoraInfo.offset_x; int iUVOffsetX = m_TheoraInfo.offset_x;
int iUVOffsetY = m_TheoraInfo.offset_y; 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; iUVOffsetX /= 2;
if( m_InputPixFmt == OC_PF_420 ) if( m_InputPixFmt == avcodec::PIX_FMT_YUV420P )
iUVOffsetY /= 2; iUVOffsetY /= 2;
avcodec::AVPicture YUVIn; avcodec::AVPicture YUVIn;