History

avformat/mlvdec: process VERS block

Peter Ross committed 1 year ago

Commit 45c30bc1 parent 86dd15f1 file · +4 −0Browse files

Unified · Split

libavformat/mlvdec.c+4−0
@@ -261,6 +261,10 @@ static int scan_file(AVFormatContext *avctx, AVStream *vst, AVStream *ast, int f · 260 unmodified lines
261261 read_uint32(avctx, pb, "colortone", "%"PRIi32);
262262 read_string(avctx, pb, "picStyleName", 16);
263263 size -= 36;
264+ } else if (type == MKTAG('V','E','R','S') && size >= 4) {
265+ unsigned int length = avio_rl32(pb);
266+ read_string(avctx, pb, "version", length);
267+ size -= length + 4;
264268 } else if (type == MKTAG('M','A','R','K')) {
265269 } else if (type == MKTAG('N','U','L','L')) {
266270 } else if (type == MKTAG('M','L','V','I')) { /* occurs when MLV and Mnn files are concatenated */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t