You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
qsvdec: Fix memory leak
Fixes CID1396851.
This commit is contained in:
@@ -305,8 +305,10 @@ static int qsv_decode(AVCodecContext *avctx, QSVContext *q,
|
||||
|
||||
do {
|
||||
ret = get_surface(avctx, q, &insurf);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
av_freep(&sync);
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = MFXVideoDECODE_DecodeFrameAsync(q->session, avpkt->size ? &bs : NULL,
|
||||
insurf, &outsurf, sync);
|
||||
|
Reference in New Issue
Block a user