diff options
author | Tristan Matthews <tmatth@videolan.org> | 2022-09-23 07:43:35 -0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-09-23 16:06:11 +0200 |
commit | e301143f96639b97a8e9a0045f93b56e0f399289 (patch) | |
tree | 1ca1500c48d5b06b7ad544c5e9bd1ce4c23fd2ff /libavcodec | |
parent | 07d930014d839dc1c10f3a539e78cc7f8b9d7a4a (diff) | |
download | ffmpeg-e301143f96639b97a8e9a0045f93b56e0f399289.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/opus_silk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/opus_silk.c b/libavcodec/opus_silk.c index 8523b55ada..f9d67f4fb3 100644 --- a/libavcodec/opus_silk.c +++ b/libavcodec/opus_silk.c @@ -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++) { |