mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/startcode: fix RVV return value on no match
If there are no zero bytes, t2 equals -1. The code cannot simply fall through to the match case.
This commit is contained in:
parent
af20fb9c4e
commit
8444115262
|
@ -37,6 +37,8 @@ func ff_startcode_find_candidate_rvv, zve32x
|
||||||
bgez t2, 2f
|
bgez t2, 2f
|
||||||
add t0, t0, t1
|
add t0, t0, t1
|
||||||
bnez a1, 1b
|
bnez a1, 1b
|
||||||
|
|
||||||
|
mv t2, zero
|
||||||
2:
|
2:
|
||||||
add t0, t0, t2
|
add t0, t0, t2
|
||||||
sub a0, t0, a0
|
sub a0, t0, a0
|
||||||
|
|
Loading…
Reference in New Issue