Skip to content

Commit

Permalink
Update plane dimensions in extend_to_size
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Dec 15, 2020
1 parent 45f7baa commit 60df39f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libheif/heif_image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,9 @@ bool HeifPixelImage::extend_to_size(int width, int height)
&plane->mem[(plane->m_height - 1) * plane->stride],
subsampled_width * nbytes);
}

plane->m_width = subsampled_width;
plane->m_height = subsampled_height;
}

m_width = width;
Expand Down

0 comments on commit 60df39f

Please sign in to comment.