[FFmpeg-cvslog] avformat/flvdec: correctly skip command frame for enhanced flv

Timo Rothenpieler git at videolan.org
Sat Jan 18 23:07:02 EET 2025


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Wed Jan 15 01:28:08 2025 +0100| [a3e506455e3346e3e0a7c577874fa3b83644e8f9] | committer: Timo Rothenpieler

avformat/flvdec: correctly skip command frame for enhanced flv

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a3e506455e3346e3e0a7c577874fa3b83644e8f9
---

 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;



More information about the ffmpeg-cvslog mailing list