PixelFormat pixel_format;
if (card_type == CardType::FFMPEG_INPUT) {
- pixel_format = PixelFormat_8BitBGRA;
+ pixel_format = capture->get_current_pixel_format();
} else if (global_flags.ten_bit_input) {
pixel_format = PixelFormat_10BitYCbCr;
} else {
// 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;