1
0
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:
Mark Thompson 2019-09-29 17:46:00 +01:00
parent 5392982241
commit 177a90b1a3

View File

@ -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;
}