Skip to content

Commit

Permalink
[av1aom] Fix tiling
Browse files Browse the repository at this point in the history
The typos missed by reviewer resulted in maximum column and row count of 2.
  • Loading branch information
eumagga0x2a committed Mar 9, 2024
1 parent 22d7e2c commit e652233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avidemux_plugins/ADM_videoEncoder/av1aom/ADM_av1AomEnc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,12 @@ bool av1AomEncoder::setup(void)
{
ADM_warning("[av1aom] Cannot set AV1E_SET_COLOR_RANGE codec control to %d\n", encoderSettings.fullrange);
}
unsigned int colCount = ((encoderSettings.tiling >> 0) && 0xFFFF);
unsigned int colCount = ((encoderSettings.tiling >> 0) & 0xFFFF);
if(AOM_CODEC_OK != aom_codec_control(&context, AV1E_SET_TILE_COLUMNS, colCount))
{
ADM_warning("[av1aom] Cannot set AV1E_SET_TILE_COLUMNS codec control to %u\n", colCount);
}
unsigned int rowCount = ((encoderSettings.tiling >> 16) && 0xFFFF);
unsigned int rowCount = ((encoderSettings.tiling >> 16) & 0xFFFF);
if(AOM_CODEC_OK != aom_codec_control(&context, AV1E_SET_TILE_ROWS, rowCount))
{
ADM_warning("[av1aom] Cannot set AV1E_SET_TILE_ROWS codec control to %u\n", rowCount);
Expand Down

0 comments on commit e652233

Please sign in to comment.