Skip to content
Snippets Groups Projects
Commit e2d2c9fb authored by Fabrice URBAN's avatar Fabrice URBAN
Browse files

fix different pps.conformanceWindows when using --UpscaledOutput=1

this should fix ticket #1643
parent 4a3d8cb9
No related branches found
No related tags found
No related merge requests found
......@@ -1478,8 +1478,10 @@ bool VideoIOYuv::writeUpscaledPicture(const SPS &sps, const PPS &pps, const CPel
else
{
const Window &conf = pps.getConformanceWindow();
int curPicWidth = maxWidth - SPS::getWinUnitX( sps.getChromaFormatIdc() ) * ( afterScaleWindowFullResolution.getWindowLeftOffset() + afterScaleWindowFullResolution.getWindowRightOffset() );
int curPicHeight = maxHeight - SPS::getWinUnitY( sps.getChromaFormatIdc() ) * ( afterScaleWindowFullResolution.getWindowTopOffset() + afterScaleWindowFullResolution.getWindowBottomOffset() );
ret = write(maxWidth, maxHeight, pic, ipCSC,
ret = write(curPicWidth, curPicHeight, pic, ipCSC,
packedYuvOutputMode, conf.getWindowLeftOffset() * SPS::getWinUnitX(chromaFormatIdc),
conf.getWindowRightOffset() * SPS::getWinUnitX(chromaFormatIdc),
conf.getWindowTopOffset() * SPS::getWinUnitY(chromaFormatIdc),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment