mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-02 10:41:16 +00:00
avfilter/signature_lookup: Dont copy uninitialized stuff around
Fixes: CID1403238 Uninitialized pointer read
Fixes: CID1403239 Uninitialized pointer read
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e7174e66ac
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
fe924faa2f
commit
1bff9db691
@ -453,14 +453,14 @@ static MatchingInfo evaluate_parameters(AVFilterContext *ctx, SignatureContext *
|
||||
}
|
||||
|
||||
if (tolerancecount > 2) {
|
||||
a = aprev;
|
||||
b = bprev;
|
||||
if (dir == DIR_NEXT) {
|
||||
/* turn around */
|
||||
a = infos->first;
|
||||
b = infos->second;
|
||||
dir = DIR_PREV;
|
||||
} else {
|
||||
a = aprev;
|
||||
b = bprev;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user