vaapi_encode: Discard output buffer if picture submission fails
authorMark Thompson <sw@jkqxz.net>
Thu, 16 Feb 2017 00:02:29 +0000 (00:02 +0000)
committerMark Thompson <sw@jkqxz.net>
Wed, 14 Jun 2017 21:23:43 +0000 (22:23 +0100)
commit92bd08974541611731b2d58723826ea26ecbe47d
tree00c1a2142711a8cb89f90fe211a49d2e67fbf121
parentf2e4fb61af4b47c329fbf2b9a245594957d7bbab
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 17aeee5832b9188b570c3d3de4197e4cdc54c634)
libavcodec/vaapi_encode.c