mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-04 23:20:40 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user