avutil/hwcontext_dxva2: return an error when buffer allocation fails
authorJames Almer <jamrial@gmail.com>
Sun, 17 Sep 2017 03:17:42 +0000 (00:17 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 19 Sep 2017 22:30:08 +0000 (19:30 -0300)
commit18516d3e695980525bd9758dc7b8a8e36cd3f09e
tree51b937c38a52c25bd83c7c974bd8b6ff548cdce3
parentf952edaa73ee8618fcc8c105b57b9032ca0d1cec
avutil/hwcontext_dxva2: return an error when buffer allocation fails

This also prevents the use of an uninitialized variable.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
libavutil/hwcontext_dxva2.c