lavc/vaapi_encode: Fix leak in error case
Fixes CID 1442564.
This commit is contained in:
parent
5392982241
commit
177a90b1a3
@ -1101,6 +1101,7 @@ int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
|
vaapi_encode_free(avctx, pic);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user