vp9-rtc: Fix to usage of active_maps when aq_mode=0
authorMarco Paniconi <marpan@google.com>
Mon, 16 May 2022 05:15:29 +0000 (22:15 -0700)
committerMarco Paniconi <marpan@google.com>
Mon, 16 May 2022 05:26:55 +0000 (22:26 -0700)
commitca89bed50dbc5fe2abef50c5f36924bb1da6d1f6
tree3a1b18ed6c78c4999166c738445761fdbfecea62
parent40a46f2034906b3d645ff2890741028458764e57
vp9-rtc: Fix to usage of active_maps when aq_mode=0

If aq_mode=0 the segmentation feature may still be used
for active_maps, so the condition active_maps.enabled
needs to be added in two places regarding segmentation
logic in encodeframe.c. Otherwise the active_maps would
have no effect.

This also resolves why the assert in bug webm:1762 was
not triggered when aq_mode=0.

Change-Id: Ibd68e9b5c3f81728241a168d3fb3567d6845633d
vp9/encoder/vp9_encodeframe.c