mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-23 18:51:20 -08:00
codec: Update to use av frame flags
Resolves Clang -Wdeprecated-declarations warning from interlaced_frame
This commit is contained in:
parent
90e87c40e8
commit
4cd3f9f4f9
@ -233,7 +233,12 @@ std::unique_ptr<Frame> DecoderContext::ReceiveFrame(bool* out_is_interlaced) {
|
|||||||
return false;
|
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;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user