This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/9.0 in repository ffmpeg.
commit 51c4a23d74ac2fbf2fb066e0ce274a966a16da23 Author: James Almer <[email protected]> AuthorDate: Fri Sep 25 13:48:10 2026 -0300 Commit: James Almer <[email protected]> CommitDate: Fri Sep 25 20:28:30 2026 -0300 avcodec/opus/dec: only add offsets to valid channel pointers Fixes clang-ubsan warning "src/libavcodec/opus/dec.c:187:27: runtime error: applying non-zero offset 96 to null pointer" Signed-off-by: James Almer <[email protected]> (cherry picked from commit c966a1de0a66de605f6f3c97fc90aff27eee71f0) --- libavcodec/opus/dec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/opus/dec.c b/libavcodec/opus/dec.c index c353e6623d..1617890fd5 100644 --- a/libavcodec/opus/dec.c +++ b/libavcodec/opus/dec.c @@ -183,8 +183,8 @@ static int opus_flush_resample(OpusStreamContext *s, int nb_samples) s->redundancy_idx = 0; } - s->cur_out[0] += nb_samples; - s->cur_out[1] += nb_samples; + for (i = 0; i < s->output_channels; i++) + s->cur_out[i] += nb_samples; s->remaining_out_size -= nb_samples * sizeof(float); return 0; -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
