diff options
author | Mark Thompson <sw@jkqxz.net> | 2020-04-13 16:33:21 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2020-04-26 18:38:25 +0100 |
commit | 79c173cc1900c735b1e256f5755b3e434a080a4f (patch) | |
tree | 9bb8fdd3d996f43cf3f5f5e851595e380c62c46e /fftools/ffmpeg_qsv.c | |
parent | 8abd3b202821e9c491f44d097686402aafdda7c5 (diff) |
ffmpeg: Remove the hw_device_ctx global
The ad-hoc libmfx setup code is the only place its still used, so move it
into that file.
Diffstat (limited to 'fftools/ffmpeg_qsv.c')
-rw-r--r-- | fftools/ffmpeg_qsv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fftools/ffmpeg_qsv.c b/fftools/ffmpeg_qsv.c index 9c4285b6c7..960c88b69d 100644 --- a/fftools/ffmpeg_qsv.c +++ b/fftools/ffmpeg_qsv.c @@ -28,6 +28,7 @@ #include "ffmpeg.h" +static AVBufferRef *hw_device_ctx; char *qsv_device = NULL; static int qsv_get_buffer(AVCodecContext *s, AVFrame *frame, int flags) |