avcodec/vaapi: free slice_buffers when decoding failed
authorLinjie Fu <linjie.fu@intel.com>
Wed, 19 Sep 2018 02:01:23 +0000 (10:01 +0800)
committerMark Thompson <sw@jkqxz.net>
Sun, 23 Sep 2018 16:46:37 +0000 (17:46 +0100)
commit0f9b298242ca2e1e2e4414967921463566f1dded
treebbac1008f8bd20a1d607137725f2796a4d76ca60
parentd5451a9b07f79dd84c8376519712866581fbf029
avcodec/vaapi: free slice_buffers when decoding failed

If vaEndPicture() failed in ff_vaapi_decode_issue(), free
the pic->slice_buffers.

Fixes the memory leak issue in ticket #7385

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
libavcodec/vaapi_decode.c