avcodec/decode: Fix incorrect enum type used in side_data_map()

It's AVPacketSideDataType, not AVFrameSideDataType.

Reviewed-by: Ted (Chromium) Meyer <tmathmeyer@chromium.org>
Reviewed-by: Marth64 <marth64@proxyid.net>
Signed-off-by: Marth64 <marth64@proxyid.net>
This commit is contained in:
Eugene Zemtsov 2024-10-24 18:52:45 -07:00 committed by Marth64
parent d6b39373a2
commit e9c3698ed2

View File

@ -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;