forked from eden-emu/eden
Improve FFmpeg error handling
This commit is contained in:
parent
61adc85c4b
commit
ea03821be2
4 changed files with 21 additions and 12 deletions
|
@ -38,6 +38,10 @@ void Decoder::Decode() {
|
|||
// Receive output frames from decoder.
|
||||
auto frame = decode_api.ReceiveFrame();
|
||||
|
||||
if (!frame) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (IsInterlaced()) {
|
||||
auto [luma_top, luma_bottom, chroma_top, chroma_bottom] = GetInterlacedOffsets();
|
||||
auto frame_copy = frame;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue