Skip to content

Commit 5e7bef5

Browse files
authored
Merge pull request sailfishos#12 from sailfishos/jb52385
[gmp] Correct native colour conv buffer size. Fixes JB#52385
2 parents 35571fe + d424af4 commit 5e7bef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gmp-droid-conv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ConvertNative: public DroidColourConvert
3232
GMPErr Convert (GMPVideoHost * host, DroidMediaData * in,
3333
GMPVideoi420Frame * out)
3434
{
35-
int32_t size = m_width * m_height;
35+
int32_t size = m_stride * m_slice_height;
3636
uint8_t *buf = (uint8_t *) malloc (size * 3 / 2);
3737
droid_media_convert_to_i420 (m_convert, in, buf);
3838
out->CreateFrame (size, buf,

0 commit comments

Comments
 (0)