]> git.sesse.net Git - ffmpeg/commit
Revert "avutil/hwcontext_vaapi: fix SEGV in vaTerminate when vaInitialize fails"
authorMark Thompson <sw@jkqxz.net>
Sun, 5 Feb 2017 14:58:06 +0000 (14:58 +0000)
committerMark Thompson <sw@jkqxz.net>
Sun, 5 Feb 2017 15:13:15 +0000 (15:13 +0000)
commit3420b34a8a63c89d748abe8e99e7acf4c2408a81
tree8eb32cc64f5374dbb95fd74841b0a28391b117f9
parentdf3b17eba47e635a694acb18b74e389194355f45
Revert "avutil/hwcontext_vaapi: fix SEGV in vaTerminate when vaInitialize fails"

The original code is correctly following the API - vaTerminate() must
be called to free the resources of a VADisplay after it is created by
any of the vaGetDisplay*() calls; it is not necessary to have
successfully called vaInitialize() on it.  The segfaults which
prompted this change must therefore be bugs in libva or the driver it
loads.

This reverts commit 3606602f1137552ea54f2c259eb140c1e3c026d4.
libavutil/hwcontext_vaapi.c