]> git.sesse.net Git - nageru/commitdiff
Fix a crash with interlaced DeckLink inputs.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 23 May 2017 19:53:31 +0000 (21:53 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 23 May 2017 19:53:31 +0000 (21:53 +0200)
mixer.cpp

index 857d62bf4fc2ab5367ba2bf1f3332fa2728fc616..261c8eec810ce27cf7d67fb2cf89d4b1f5c29923 100644 (file)
--- a/mixer.cpp
+++ b/mixer.cpp
@@ -643,6 +643,7 @@ void Mixer::bm_frame(unsigned card_index, uint16_t timecode,
                // a deinterlacer to actually get this right.
                assert(video_format.height % 2 == 0);
                video_format.height /= 2;
+               cbcr_height /= 2;
                assert(frame_length % 2 == 0);
                frame_length /= 2;
                num_fields = 2;