avformat/flvdec: correctly skip command frame for enhanced flv

This commit is contained in:
Timo Rothenpieler 2025-01-15 01:28:08 +01:00
parent ced9fddec0
commit a3e506455e

View file

@ -1444,6 +1444,10 @@ retry:
goto leave;
}
if (enhanced_flv && pkt_type != PacketTypeMetadata &&
(flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_VIDEO_INFO_CMD)
goto skip;
if (pkt_type == PacketTypeMultitrack) {
uint8_t types = avio_r8(s->pb);
multitrack_type = types & 0xF0;