From e9c3698ed23ab3d8cf1fe1fc74b3b2f8ba42c865 Mon Sep 17 00:00:00 2001 From: Eugene Zemtsov Date: Thu, 24 Oct 2024 18:52:45 -0700 Subject: [PATCH] avcodec/decode: Fix incorrect enum type used in side_data_map() It's AVPacketSideDataType, not AVFrameSideDataType. Reviewed-by: Ted (Chromium) Meyer Reviewed-by: Marth64 Signed-off-by: Marth64 --- libavcodec/decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 3380cb27cf..d1e10223f2 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -1471,8 +1471,8 @@ static int side_data_map(AVFrame *dst, { for (int i = 0; map[i].packet < AV_PKT_DATA_NB; i++) { - const enum AVFrameSideDataType type_pkt = map[i].packet; - const enum AVFrameSideDataType type_frame = map[i].frame; + const enum AVPacketSideDataType type_pkt = map[i].packet; + const enum AVFrameSideDataType type_frame = map[i].frame; const AVPacketSideData *sd_pkt; AVFrameSideData *sd_frame;