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

@@ -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