Casting an rvalue to nonconst reference is illegal. I'm not positive why these are considered to be rvalues when they are cast.
This commit is contained in:
@@ -589,7 +589,10 @@ void MovieDecoder_FFMpeg::Close()
|
|||||||
|
|
||||||
RageSurface *MovieDecoder_FFMpeg::CreateCompatibleSurface( int iTextureWidth, int iTextureHeight, bool bPreferHighColor )
|
RageSurface *MovieDecoder_FFMpeg::CreateCompatibleSurface( int iTextureWidth, int iTextureHeight, bool bPreferHighColor )
|
||||||
{
|
{
|
||||||
return MovieTexture_FFMpeg::AVCodecCreateCompatibleSurface( iTextureWidth, iTextureHeight, bPreferHighColor, (int&) m_AVTexfmt );
|
int temp = m_AVTexfmt;
|
||||||
|
RageSurface *surface = MovieTexture_FFMpeg::AVCodecCreateCompatibleSurface( iTextureWidth, iTextureHeight, bPreferHighColor, temp );
|
||||||
|
m_AVTexfmt = avcodec::PixelFormat( temp );
|
||||||
|
return surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
MovieTexture_FFMpeg::MovieTexture_FFMpeg( RageTextureID ID ):
|
MovieTexture_FFMpeg::MovieTexture_FFMpeg( RageTextureID ID ):
|
||||||
|
|||||||
@@ -267,7 +267,10 @@ int MovieDecoder_Theora::GetFrame( RageSurface *pOut, float fTargetTime )
|
|||||||
|
|
||||||
RageSurface *MovieDecoder_Theora::CreateCompatibleSurface( int iTextureWidth, int iTextureHeight, bool bPreferHighColor )
|
RageSurface *MovieDecoder_Theora::CreateCompatibleSurface( int iTextureWidth, int iTextureHeight, bool bPreferHighColor )
|
||||||
{
|
{
|
||||||
return MovieTexture_FFMpeg::AVCodecCreateCompatibleSurface( iTextureWidth, iTextureHeight, bPreferHighColor, (int&) m_OutputPixFmt );
|
int temp = m_OutputPixFmt;
|
||||||
|
RageSurface *surface = MovieTexture_FFMpeg::AVCodecCreateCompatibleSurface( iTextureWidth, iTextureHeight, bPreferHighColor, temp );
|
||||||
|
m_OutputPixFmt = avcodec::PixelFormat( temp );
|
||||||
|
return surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MovieDecoder_Theora::ConvertToSurface( RageSurface *pSurface ) const
|
void MovieDecoder_Theora::ConvertToSurface( RageSurface *pSurface ) const
|
||||||
@@ -604,7 +607,10 @@ int MovieDecoder_Theora::GetFrame( RageSurface *pOut, float fTargetTime )
|
|||||||
|
|
||||||
RageSurface *MovieDecoder_Theora::CreateCompatibleSurface( int iTextureWidth, int iTextureHeight, bool bPreferHighColor )
|
RageSurface *MovieDecoder_Theora::CreateCompatibleSurface( int iTextureWidth, int iTextureHeight, bool bPreferHighColor )
|
||||||
{
|
{
|
||||||
return MovieTexture_FFMpeg::AVCodecCreateCompatibleSurface( iTextureWidth, iTextureHeight, bPreferHighColor, (int&) m_OutputPixFmt );
|
int temp = m_OutputPixFmt;
|
||||||
|
RageSurface *surface = MovieTexture_FFMpeg::AVCodecCreateCompatibleSurface( iTextureWidth, iTextureHeight, bPreferHighColor, temp );
|
||||||
|
m_OutputPixFmt = avcodec::PixelFormat( temp );
|
||||||
|
return surface;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MovieDecoder_Theora::DecodeStripeStub( void *pCtx, theora_ycbcr_buffer yuv, int yfrag0, int yfrag_end )
|
void MovieDecoder_Theora::DecodeStripeStub( void *pCtx, theora_ycbcr_buffer yuv, int yfrag0, int yfrag_end )
|
||||||
|
|||||||
Reference in New Issue
Block a user