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>
Thu, 16 Feb 2017 20:58:42 +0000 (20:58 +0000)
commit17aeee5832b9188b570c3d3de4197e4cdc54c634
tree1cd1258805daec325c1c39d3703dca7c64883c57
parent8f5de34c8fb18fa1416e77d2cb998773a49ddb3d
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.
libavcodec/vaapi_encode.c