[FFmpeg-devel] [PATCHv2 2/3] avformat/mlvdec: process VERS block
Peter Ross
pross at xvid.org
Sun Dec 22 09:40:38 EET 2024
---
libavformat/mlvdec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c
index 22c94c6c58..a786f73fba 100644
--- a/libavformat/mlvdec.c
+++ b/libavformat/mlvdec.c
@@ -259,6 +259,10 @@ static int scan_file(AVFormatContext *avctx, AVStream *vst, AVStream *ast, int f
read_uint32(avctx, pb, "colortone", "%"PRIi32);
read_string(avctx, pb, "picStyleName", 16);
size -= 36;
+ } else if (type == MKTAG('V','E','R','S') && size >= 4) {
+ unsigned int length = avio_rl32(pb);
+ read_string(avctx, pb, "version", length);
+ size -= length + 4;
} else if (type == MKTAG('M','A','R','K')) {
} else if (type == MKTAG('N','U','L','L')) {
} else if (type == MKTAG('M','L','V','I')) { /* occurs when MLV and Mnn files are concatenated */
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241222/e30733cc/attachment.sig>
More information about the ffmpeg-devel
mailing list