[FFmpeg-devel] [PATCH 2/2] avformat/flvdec: correctly skip command frame for enhanced flv

Timo Rothenpieler timo at rothenpieler.org
Wed Jan 15 02:36:04 EET 2025


---
 libavformat/flvdec.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index b4ea984f58..029992fc23 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -1439,6 +1439,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;
-- 
2.45.2



More information about the ffmpeg-devel mailing list