We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35571fe commit d424af4Copy full SHA for d424af4
gmp-droid-conv.cpp
@@ -32,7 +32,7 @@ class ConvertNative: public DroidColourConvert
32
GMPErr Convert (GMPVideoHost * host, DroidMediaData * in,
33
GMPVideoi420Frame * out)
34
{
35
- int32_t size = m_width * m_height;
+ int32_t size = m_stride * m_slice_height;
36
uint8_t *buf = (uint8_t *) malloc (size * 3 / 2);
37
droid_media_convert_to_i420 (m_convert, in, buf);
38
out->CreateFrame (size, buf,
0 commit comments