Can force video hardware acceleration with VDPAU

This commit is contained in:
Iwan Timmer
2016-03-06 12:43:31 +01:00
parent 3d12cc4006
commit 6b5eef8572

View File

@@ -34,6 +34,9 @@ static char* ffmpeg_buffer;
static void sdl_setup(int width, int height, int redrawRate, void* context, int drFlags) {
int avc_flags = SLICE_THREADING;
if (drFlags && FORCE_HARDWARE_ACCELERATION)
avc_flags |= HARDWARE_ACCELERATION;
if (ffmpeg_init(width, height, avc_flags, 2) < 0) {
fprintf(stderr, "Couldn't initialize video decoding\n");
exit(1);