Skip to content
Snippets Groups Projects
Commit 17aeee58 authored by Mark Thompson's avatar Mark Thompson
Browse files

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.
parent 8f5de34c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment