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:
Rémi Denis-Courmont 2024-05-27 22:02:31 +03:00
parent af20fb9c4e
commit 8444115262
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ func ff_startcode_find_candidate_rvv, zve32x
bgez t2, 2f
add t0, t0, t1
bnez a1, 1b
mv t2, zero
2:
add t0, t0, t2
sub a0, t0, a0