Commit 904817cb authored by Paul B Mahol's avatar Paul B Mahol Committed by Justin Ruggles

cdxl: fix ham6/8 on big endian

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarJustin Ruggles <justin.ruggles@gmail.com>
parent 2bb628f8
......@@ -122,7 +122,7 @@ static void cdxl_decode_ham6(CDXLVideoContext *c)
g = index * 0x11 << 8;
break;
}
AV_WN32(out + x * 3, r | g | b);
AV_WL24(out + x * 3, r | g | b);
}
out += c->frame.linesize[0];
}
......@@ -165,7 +165,7 @@ static void cdxl_decode_ham8(CDXLVideoContext *c)
g = (index << 10) | (g & (3 << 8));
break;
}
AV_WN32(out + x * 3, r | g | b);
AV_WL24(out + x * 3, r | g | b);
}
out += c->frame.linesize[0];
}
......
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