mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
cdxl: fix ham6/8 on big endian
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
This commit is contained in:
parent
2bb628f870
commit
904817cb9f
@ -122,7 +122,7 @@ static void cdxl_decode_ham6(CDXLVideoContext *c)
|
|||||||
g = index * 0x11 << 8;
|
g = index * 0x11 << 8;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
AV_WN32(out + x * 3, r | g | b);
|
AV_WL24(out + x * 3, r | g | b);
|
||||||
}
|
}
|
||||||
out += c->frame.linesize[0];
|
out += c->frame.linesize[0];
|
||||||
}
|
}
|
||||||
@ -165,7 +165,7 @@ static void cdxl_decode_ham8(CDXLVideoContext *c)
|
|||||||
g = (index << 10) | (g & (3 << 8));
|
g = (index << 10) | (g & (3 << 8));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
AV_WN32(out + x * 3, r | g | b);
|
AV_WL24(out + x * 3, r | g | b);
|
||||||
}
|
}
|
||||||
out += c->frame.linesize[0];
|
out += c->frame.linesize[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user