Skip to content

Commit 2be5e5e

Browse files
committed
Fixing crash on certain hardware accelerator modes (specifically decoder 2, device 0)
1 parent 13e74b1 commit 2be5e5e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/FFmpegReader.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -934,9 +934,7 @@ std::shared_ptr<Frame> FFmpegReader::ReadStream(int64_t requested_frame) {
934934
// down processing considerably, but might be more stable on some systems.
935935
#pragma omp taskwait
936936
}
937-
} else {
938-
RemoveAVFrame(pFrame);
939-
}
937+
}
940938

941939
}
942940
// Audio packet

src/examples/Example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int main(int argc, char* argv[]) {
3838

3939
Settings *s = Settings::Instance();
4040
s->HARDWARE_DECODER = 2; // 1 VA-API, 2 NVDEC
41-
s->HW_DE_DEVICE_SET = 1;
41+
s->HW_DE_DEVICE_SET = 0;
4242

4343
FFmpegReader r9("/home/jonathan/Videos/sintel_trailer-720p.mp4");
4444
r9.Open();

0 commit comments

Comments
 (0)