aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2024-12-12 18:38:42 +1100
committerPeter Ross <pross@xvid.org>2025-01-12 10:55:44 +1100
commit45c30bc51e52ebab33735ddfb4f3cd04412d2c29 (patch)
treedc4f581c4e805566e0cb0a95c8e6b152108c8d43
parent86dd15fd0dd0deeb69ffcff9952b801bbb2f38c7 (diff)
downloadffmpeg-45c30bc51e52ebab33735ddfb4f3cd04412d2c29.tar.gz
avformat/mlvdec: process VERS block
-rw-r--r--libavformat/mlvdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mlvdec.c b/libavformat/mlvdec.c
index e5969f04c2..2b3de185a5 100644
--- a/libavformat/mlvdec.c
+++ b/libavformat/mlvdec.c
@@ -261,6 +261,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 */