From a3e506455e3346e3e0a7c577874fa3b83644e8f9 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Wed, 15 Jan 2025 01:28:08 +0100 Subject: [PATCH] avformat/flvdec: correctly skip command frame for enhanced flv --- libavformat/flvdec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 61dd19a691..62baeafafd 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -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;