]> git.nihav.org Git - nihav.git/commitdiff
vmd: recognize upper-case Indeo 3 FOURCC
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 24 May 2025 10:39:52 +0000 (12:39 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 24 May 2025 10:39:52 +0000 (12:39 +0200)
nihav-game/src/demuxers/vmd.rs

index d5c975310d819e174791b9a2aad4d3e282a15690..4e85dea17d594d8f13c4680f92c01a10ee5d29ef 100644 (file)
@@ -45,7 +45,7 @@ impl<'a> DemuxCore<'a> for VMDDemuxer<'a> {
 
         let mut width  = read_u16le(&header[12..])? as usize;
         let mut height = read_u16le(&header[14..])? as usize;
-        self.is_indeo = &header[24..27] == b"iv3";
+        self.is_indeo = &header[24..27] == b"iv3" || &header[24..27] == b"IV3";
         if self.is_indeo && width > 320 {
             width  >>= 1;
             height >>= 1;