You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Fixing crash on certain hardware accelerator modes (specifically decoder 2, device 0)
This commit is contained in:
@@ -934,9 +934,7 @@ std::shared_ptr<Frame> FFmpegReader::ReadStream(int64_t requested_frame) {
|
||||
// down processing considerably, but might be more stable on some systems.
|
||||
#pragma omp taskwait
|
||||
}
|
||||
} else {
|
||||
RemoveAVFrame(pFrame);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// Audio packet
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user