- black_frame->y.reset(new uint8_t[1280 * 720]);
- black_frame->cb.reset(new uint8_t[(1280 / 2) * (720 / 2)]);
- black_frame->cr.reset(new uint8_t[(1280 / 2) * (720 / 2)]);
- black_frame->width = 1280;
- black_frame->height = 720;
+ black_frame->y.reset(new uint8_t[global_flags.width * global_flags.height]);
+ black_frame->cb.reset(new uint8_t[(global_flags.width / 2) * (global_flags.height / 2)]);
+ black_frame->cr.reset(new uint8_t[(global_flags.width / 2) * (global_flags.height / 2)]);
+ black_frame->width = global_flags.width;
+ black_frame->height = global_flags.height;