Skip to content

Commit 548ec19

Browse files
authored
Add support for newer display units in MatroskaParser (#378)
1 parent 46c4f5f commit 548ec19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MatroskaParser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ static void parseVideoInfo(MatroskaFile *mf,uint64_t toplen,struct TrackInfo *ti
11691169
break;
11701170
case 0x54b2: // DisplayUnit
11711171
v = readUInt(mf,(unsigned)len);
1172-
if (v>2)
1172+
if (v>4)
11731173
errorjmp(mf,"Invalid DisplayUnit: %d",(int)v);
11741174
ti->AV.Video.DisplayUnit = (unsigned char)v;
11751175
break;

0 commit comments

Comments
 (0)