aboutsummaryrefslogtreecommitdiffstats
path: root/nihav-duck/src/codecs/vp56.rs
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2021-11-02 18:20:06 +0100
committerKostya Shishkov <kostya.shishkov@gmail.com>2021-11-02 18:20:06 +0100
commit92d9fb6993d2d3f6f7a016ee6796a98e6e989f21 (patch)
treefc62601617c3ec10e18c5a39940225abe0d2da4d /nihav-duck/src/codecs/vp56.rs
parentbc23de6bedc2e151caea241b073a65d30f62c134 (diff)
downloadnihav-92d9fb6993d2d3f6f7a016ee6796a98e6e989f21.tar.gz
Flash support
Diffstat (limited to 'nihav-duck/src/codecs/vp56.rs')
-rw-r--r--nihav-duck/src/codecs/vp56.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nihav-duck/src/codecs/vp56.rs b/nihav-duck/src/codecs/vp56.rs
index 807756a..01e8171 100644
--- a/nihav-duck/src/codecs/vp56.rs
+++ b/nihav-duck/src/codecs/vp56.rs
@@ -486,7 +486,7 @@ impl VP56Decoder {
let hdr = br.parse_header(&mut bc)?;
validate!((hdr.offset as usize) < aoffset); //XXX: take alpha 3 byte offset into account?
- if hdr.mb_w != 0 {
+ if hdr.mb_w != 0 && (usize::from(hdr.mb_w) != self.mb_w || usize::from(hdr.mb_h) != self.mb_h) {
self.set_dimensions((hdr.mb_w as usize) * 16, (hdr.mb_h as usize) * 16);
}
let fmt = if !self.has_alpha {