ffmpeg | branch: master | Timo Rothenpieler <t...@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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to