Commit 25e2663f authored by Debargha Mukherjee's avatar Debargha Mukherjee

Temporary fix for failures with mono-video

Initialize all the 3 planes even if the video is monochrome.
There were some unintended consequences with initializing
only the luma plane for monochrome videos, which will be
resolved subsequently.

Change-Id: Id57445e3a5a62605511220600e749e662d080b49
parent 26e265f0
......@@ -755,7 +755,7 @@ static INLINE int av1_num_planes(const AV1_COMMON *cm) {
static INLINE void av1_init_macroblockd(AV1_COMMON *cm, MACROBLOCKD *xd,
tran_low_t *dqcoeff) {
for (int i = 0; i < av1_num_planes(cm); ++i) {
for (int i = 0; i < MAX_MB_PLANE; ++i) {
xd->plane[i].dqcoeff = dqcoeff;
xd->above_context[i] = cm->above_context[i];
if (xd->plane[i].plane_type == PLANE_TYPE_Y) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment