Commit c78f1106 authored by Thomas Guillem's avatar Thomas Guillem

mediacodec: ndk: use AMediaCodecBufferInfo size

The buffer size can be bigger than valid data size.
parent df2cd483
......@@ -447,7 +447,7 @@ static int GetOutput(mc_api *api, mc_api_out *p_out, mtime_t i_timeout)
return VLC_EGENERIC;
}
p_out->u.buf.p_ptr = p_mc_buf + info.offset;
p_out->u.buf.i_size = i_mc_size;
p_out->u.buf.i_size = info.size;
}
return 1;
}
......
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