From: Kostya Shishkov Date: Wed, 23 Sep 2026 15:24:11 +0000 (+0200) Subject: qdraw: set bitdepth for the invoked sub-decoder X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=402e23b99d2e5bac6958a9025d0ae107dfe68650;p=nihav.git qdraw: set bitdepth for the invoked sub-decoder --- diff --git a/nihav-qt/src/codecs/qdraw.rs b/nihav-qt/src/codecs/qdraw.rs index 3448fe8..9b9f377 100644 --- a/nihav-qt/src/codecs/qdraw.rs +++ b/nihav-qt/src/codecs/qdraw.rs @@ -455,7 +455,8 @@ impl NADecoder for QDrawDecoder { return Err(DecoderError::NotImplemented); }, }; - let vinfo = NAVideoInfo::new(qwidth, qheight, false, fmt); + let mut vinfo = NAVideoInfo::new(qwidth, qheight, false, fmt); + vinfo.bits = (if depth > 32 { depth - 32 } else { depth }) as u8; let info = NACodecInfo::new(cname, NACodecTypeInfo::Video(vinfo), None); let stream = NAStream::new(StreamType::Video, 0, info, 1, 1, 0).into_ref(); if let Err(err) = dec.init(&mut dsupp, stream.get_info()) {