This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.1 in repository ffmpeg.
commit 5041c2bf2ee79a9b62e6ca30144f599874fcdc8d Author: James Almer <[email protected]> AuthorDate: Fri Sep 25 13:48:10 2026 -0300 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 29 05:56:35 2026 +0100 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) Signed-off-by: Michael Niedermayer <[email protected]> --- 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 6b1f72ccb4..8deda30dd2 100644 --- a/libavcodec/opus/dec.c +++ b/libavcodec/opus/dec.c @@ -182,8 +182,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]
