diff options
author | Peter Ross <pross@xvid.org> | 2024-12-12 18:38:42 +1100 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2025-01-12 10:55:44 +1100 |
commit | 45c30bc51e52ebab33735ddfb4f3cd04412d2c29 (patch) | |
tree | dc4f581c4e805566e0cb0a95c8e6b152108c8d43 | |
parent | 86dd15fd0dd0deeb69ffcff9952b801bbb2f38c7 (diff) | |
download | ffmpeg-45c30bc51e52ebab33735ddfb4f3cd04412d2c29.tar.gz |
avformat/mlvdec: process VERS block
-rw-r--r-- | libavformat/mlvdec.c | 4 |
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 */ |