Fixing crash on certain hardware accelerator modes (specifically decoder 2, device 0)

This commit is contained in:
Jonathan Thomas
2019-06-04 13:42:46 -05:00
parent 13e74b147a
commit 2be5e5e168
2 changed files with 2 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ int main(int argc, char* argv[]) {
Settings *s = Settings::Instance();
s->HARDWARE_DECODER = 2; // 1 VA-API, 2 NVDEC
s->HW_DE_DEVICE_SET = 1;
s->HW_DE_DEVICE_SET = 0;
FFmpegReader r9("/home/jonathan/Videos/sintel_trailer-720p.mp4");
r9.Open();