Commit ba19bb5e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

image: fix block size for decoded picture (fixes #14547)

parent 541b381c
......@@ -147,8 +147,7 @@ static block_t *Decode(demux_t *demux,
size_t size = 0;
for (int i = 0; i < image->i_planes; i++)
size += image->p[i].i_visible_pitch *
image->p[i].i_visible_lines;
size += image->p[i].i_pitch * image->p[i].i_lines;
data = block_Alloc(size);
if (!data) {
......
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