Commit 177a90b1 authored by Mark Thompson's avatar Mark Thompson

lavc/vaapi_encode: Fix leak in error case

Fixes CID 1442564.
parent 53929822
...@@ -1101,6 +1101,7 @@ int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment