mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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;
|
||||
|
||||
fail:
|
||||
vaapi_encode_free(avctx, pic);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user