mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 19:49:56 +00:00
avcodec/cuviddec: unref output frame on failure
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
eadf7e3a59
commit
cd821c18dc
@ -634,6 +634,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
}
|
||||
|
||||
error:
|
||||
if (ret < 0)
|
||||
av_frame_unref(frame);
|
||||
|
||||
if (mapped_frame)
|
||||
eret = CHECK_CU(ctx->cvdl->cuvidUnmapVideoFrame(ctx->cudecoder, mapped_frame));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user