opus_silk: reset midonly flag after skipping LBRR

Fix suggested by Mark Harris. Fixes ticket #9890

Simplified after feedback from Anton Khirnov.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Tristan Matthews 2022-09-23 07:43:35 -04:00 committed by Anton Khirnov
parent 07d930014d
commit e301143f96
1 changed files with 2 additions and 0 deletions

View File

@ -833,6 +833,8 @@ int ff_silk_decode_superframe(SilkContext *s, OpusRangeCoder *rc,
int active1 = (j == 0 && !(redundancy[1] & (1 << i))) ? 0 : 1;
silk_decode_frame(s, rc, i, j, coded_channels, 1, active1, 1);
}
s->midonly = 0;
}
for (i = 0; i < nb_frames; i++) {