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

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

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