mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 19:49:56 +00:00
vaapi_encode: Discard output buffer if picture submission fails
Previously this was leaking, though it actually hit an assert making
sure that the buffer had already been cleared when freeing the picture.
(cherry picked from commit 17aeee5832
)
This commit is contained in:
parent
f2e4fb61af
commit
92bd089745
@ -428,6 +428,8 @@ fail:
|
||||
fail_at_end:
|
||||
av_freep(&pic->codec_picture_params);
|
||||
av_frame_free(&pic->recon_image);
|
||||
av_buffer_unref(&pic->output_buffer_ref);
|
||||
pic->output_buffer = VA_INVALID_ID;
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user