]> git.sesse.net Git - ffmpeg/commit
amfenc: Fail to open if the user-supplied device is not usable
authorMark Thompson <sw@jkqxz.net>
Sat, 14 Apr 2018 14:45:55 +0000 (15:45 +0100)
committerMark Thompson <sw@jkqxz.net>
Sun, 15 Apr 2018 15:42:35 +0000 (16:42 +0100)
commitff1be6c9a694ee019608288fd25f1c869f7f51b7
tree8683764e7c3e7919726c001e66b76c18a45327c9
parent9fd11e51882aad9000943a9962d10880cae6667a
amfenc: Fail to open if the user-supplied device is not usable

If the user supplies a device or frames context then it is an error
not to use it; this is consistent with other hardware components.

Also factorise out the D3D11 initialisation and improve error
messages.
libavcodec/amfenc.c