ffmpeg: use explicitly requested hwaccel only
authorTimo Rothenpieler <timo@rothenpieler.org>
Fri, 10 Nov 2017 21:06:22 +0000 (22:06 +0100)
committerTimo Rothenpieler <timo@rothenpieler.org>
Sat, 11 Nov 2017 13:19:05 +0000 (14:19 +0100)
commit6a4d1c9063174234ca439244cf8f5f534afa1c28
tree584498eedc7177d2e9940283aa4ab7bb79d59730
parentbc509617310d60216e1f1433a13bebe16d4d9d40
ffmpeg: use explicitly requested hwaccel only

With there being two hwaccels that use the CUDA pix_fmt now, just
relying on the pix_fmt to identify the selected hwaccel is not enough
anymore.

So this checks if the user explicitly selected a hwaccel, and only
accepts that one.
fftools/ffmpeg.c