]> git.nihav.org Git - nihav.git/commitdiff
movmux: check actual format depth for video track
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 9 Oct 2026 09:58:51 +0000 (11:58 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 9 Oct 2026 09:58:51 +0000 (11:58 +0200)
nihav-commonfmt/src/muxers/mov/videotrack.rs

index 7bbf9a006f0d83597f9a2f566f66f8deac6b97b0..28b524c290fff45c86098512d75f148f554f2e1a 100644 (file)
@@ -128,6 +128,9 @@ impl TrackHandler for VideoTrackHandler {
                 15 | 16 => 16,
                 other_depth => other_depth
             };
+        if self.vinfo.bits == 15 || self.vinfo.bits == 16 {
+            bpp = 16;
+        }
         if self.vinfo.format.is_paletted() { //xxx: handle 1-/2-/4-bit palettes too
             bpp = 8;
         }