1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00

avcodec/riscv/vc1dsp: fix unescaping of an escape byte at the start of a vector chunk

Fixes: 2ACIzt6ruKw2
Fixes: output mismatch
Output mismatch Replicated through UnModified FFmpeg with checkasm under qemu-riscv64
Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24592
This commit is contained in:
Michael Niedermayer
2026-10-13 05:45:22 +02:00
committed by michaelni
parent ed397944c6
commit 3b7acab4e2

View File

@@ -429,10 +429,10 @@ func ff_vc1_unescape_buffer_rvv, zve32x
bgez t2, 4f # found an escape byte?
vse8.v v16, (a2)
addi t2, t0, -2
addi t2, t0, -1
add a2, a2, t0
2:
vslidedown.vx v8, v16, t2
vslidedown.vx v8, v12, t2
sub a1, a1, t0
vslidedown.vi v12, v8, 1
add a0, a0, t0
@@ -449,7 +449,6 @@ func ff_vc1_unescape_buffer_rvv, zve32x
vse8.v v16, (a2)
addi t0, t2, 1
add a2, a2, t2
addi t2, t2, -1
vsetvli zero, t0, e8, m4, ta, ma
vsetivli zero, 2, e8, m4, ta, ma
j 2b
endfunc