1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_thumbnail_cuda: Set ret before checking it

Fixes: CID1418336 Logically dead code

Sponsored-by: Sovereign Tech Fund
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 02301017d2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-04-22 03:09:54 +02:00
parent 601e4fb1f0
commit d9ccbd71f4
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -290,7 +290,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
hist[i] = 4 * hist[i]; hist[i] = 4 * hist[i];
} }
CHECK_CU(cu->cuCtxPopCurrent(&dummy)); ret = CHECK_CU(cu->cuCtxPopCurrent(&dummy));
if (ret < 0) if (ret < 0)
return ret; return ret;