mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 14:22:00 +00:00
Can force video hardware acceleration with VDPAU
This commit is contained in:
@@ -34,6 +34,9 @@ static char* ffmpeg_buffer;
|
|||||||
|
|
||||||
static void sdl_setup(int width, int height, int redrawRate, void* context, int drFlags) {
|
static void sdl_setup(int width, int height, int redrawRate, void* context, int drFlags) {
|
||||||
int avc_flags = SLICE_THREADING;
|
int avc_flags = SLICE_THREADING;
|
||||||
|
if (drFlags && FORCE_HARDWARE_ACCELERATION)
|
||||||
|
avc_flags |= HARDWARE_ACCELERATION;
|
||||||
|
|
||||||
if (ffmpeg_init(width, height, avc_flags, 2) < 0) {
|
if (ffmpeg_init(width, height, avc_flags, 2) < 0) {
|
||||||
fprintf(stderr, "Couldn't initialize video decoding\n");
|
fprintf(stderr, "Couldn't initialize video decoding\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user