diff options
author | Rémi Denis-Courmont <remi@remlab.net> | 2024-11-17 21:21:44 +0200 |
---|---|---|
committer | Rémi Denis-Courmont <remi@remlab.net> | 2024-11-18 20:04:58 +0200 |
commit | b75dff0e201ebe89f63f9ffb2c38f38e310b7333 (patch) | |
tree | 6da12106d64dba6a7b7cd841317a06260e323871 | |
parent | e29432e6bbb6184d3ff2c7d1e070e9424cb25fe6 (diff) | |
download | ffmpeg-b75dff0e201ebe89f63f9ffb2c38f38e310b7333.tar.gz |
lavc/h264dsp: fix R-V V weight_pixels pointer arithmetic
As of 459a1512f13ae1fdd404ff9281b02d225ac70a09,
the code is unrolled to process two rows per iteration.
The output cursor thus needs to be incremented by twice the
stride, which is taken care of with SH1ADD. However the original
ADD from the original implemetation was incorrectly left over.
-rw-r--r-- | libavcodec/riscv/h264dsp_rvv.S | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/riscv/h264dsp_rvv.S b/libavcodec/riscv/h264dsp_rvv.S index 05d077f44e..919dcf5009 100644 --- a/libavcodec/riscv/h264dsp_rvv.S +++ b/libavcodec/riscv/h264dsp_rvv.S @@ -52,7 +52,6 @@ func ff_h264_weight_pixels_simple_8_rvv, zve32x, b vse8.v v8, (a0) vse8.v v9, (t0) sh1add a0, a1, a0 - add a0, a0, a1 bnez a2, 1b ret |