projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8f5de34
)
vaapi_encode: Discard output buffer if picture submission fails
author
Mark Thompson
<sw@jkqxz.net>
Thu, 16 Feb 2017 00:02:29 +0000
(
00:02
+0000)
committer
Mark Thompson
<sw@jkqxz.net>
Thu, 16 Feb 2017 20:58:42 +0000
(20:58 +0000)
Previously this was leaking, though it actually hit an assert making
sure that the buffer had already been cleared when freeing the picture.
libavcodec/vaapi_encode.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/vaapi_encode.c
b/libavcodec/vaapi_encode.c
index
c02b633
..
411d879
100644
(file)
--- a/
libavcodec/vaapi_encode.c
+++ b/
libavcodec/vaapi_encode.c
@@
-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;
}