diff options
author | James Almer <jamrial@gmail.com> | 2023-04-12 14:18:50 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-05-04 18:15:00 -0300 |
commit | 599abc0f3a0c6a1d9746a3098cd444a45471a160 (patch) | |
tree | 651d3f6d2669c2b7f487cccb2e708a481d0213a9 /libavcodec/decode.c | |
parent | 3675dd0e0c8892151441a02ed0c5dee72a111c81 (diff) | |
download | ffmpeg-599abc0f3a0c6a1d9746a3098cd444a45471a160.tar.gz |
avutil/frame: deprecate interlaced_frame and top_field_first
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/decode.c')
-rw-r--r-- | libavcodec/decode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 73bba99750..64a448b54c 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -570,8 +570,12 @@ static int decode_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame) } if (!ret) { +#if FF_API_INTERLACED_FRAME +FF_DISABLE_DEPRECATION_WARNINGS frame->interlaced_frame = !!(frame->flags & AV_FRAME_FLAG_INTERLACED); frame->top_field_first = !!(frame->flags & AV_FRAME_FLAG_TOP_FIELD_FIRST); +FF_ENABLE_DEPRECATION_WARNINGS +#endif frame->best_effort_timestamp = guess_correct_pts(avctx, frame->pts, frame->pkt_dts); |