early-access version 4010

This commit is contained in:
pineappleEA
2023-12-08 07:20:22 +01:00
parent 6de9c0b85c
commit 465501b5ac
13 changed files with 552 additions and 15 deletions

View File

@@ -233,7 +233,12 @@ std::unique_ptr<Frame> DecoderContext::ReceiveFrame(bool* out_is_interlaced) {
return false;
}
*out_is_interlaced = frame->interlaced_frame != 0;
*out_is_interlaced =
#if defined(FF_API_INTERLACED_FRAME) || LIBAVUTIL_VERSION_MAJOR >= 59
(frame->flags & AV_FRAME_FLAG_INTERLACED) != 0;
#else
frame->interlaced_frame != 0;
#endif
return true;
};