Skip to content

Commit

Permalink
Merge pull request #188 from Aleksoid1978/master
Browse files Browse the repository at this point in the history
Fix build without ENABLE_FILM_GRAIN.
  • Loading branch information
adamjw24 authored Jun 25, 2024
2 parents 752bdd0 + c7e2f8b commit ad8f4bb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions source/Lib/vvdec/vvdecimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,11 @@ int VVDecImpl::xAddPicture( Picture* pcPic )
cFrame.ctsValid = true;

int ret;
#if ENABLE_FILM_GRAIN
bool origStride = m_filmGrainCharacteristicsState != FgcNone;
#else
bool origStride = false;
#endif
#if RPR_YUV_OUTPUT
if( m_cDecLib->getUpscaledOutput() && ( uiWidth != orgWidth || uiHeight != orgHeight ) )
{
Expand All @@ -991,10 +996,10 @@ int VVDecImpl::xAddPicture( Picture* pcPic )
}
else
{
ret = xCreateFrame( cFrame, cPicBuf, uiWidth, uiHeight, bitDepths, bCreateStorage, m_filmGrainCharacteristicsState != FgcNone );
ret = xCreateFrame( cFrame, cPicBuf, uiWidth, uiHeight, bitDepths, bCreateStorage, origStride );
}
#else
ret = xCreateFrame( cFrame, cPicBuf, uiWidth, uiHeight, bitDepths, bCreateStorage, m_filmGrainCharacteristicsState != FgcNone );
ret = xCreateFrame( cFrame, cPicBuf, uiWidth, uiHeight, bitDepths, bCreateStorage, origStride );
#endif
if( ret != VVDEC_OK )
{
Expand Down

0 comments on commit ad8f4bb

Please sign in to comment.