[FFmpeg-cvslog] avformat/mlvdec: process VERS block
Peter Ross
git at videolan.org
Sun Jan 12 02:06:05 EET 2025
ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Thu Dec 12 18:38:42 2024 +1100| [45c30bc51e52ebab33735ddfb4f3cd04412d2c29] | committer: Peter Ross
avformat/mlvdec: process VERS block
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=45c30bc51e52ebab33735ddfb4f3cd04412d2c29
---
libavformat/mlvdec.c | 4 ++++
1 file changed, 4 insertions(+)
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 */
More information about the ffmpeg-cvslog
mailing list