st/omx: fix decoder fillout for the OMX result buffer
authorLeo Liu <leo.liu@amd.com>
Tue, 28 Jun 2016 00:40:30 +0000 (20:40 -0400)
committerLeo Liu <leo.liu@amd.com>
Tue, 28 Jun 2016 12:57:56 +0000 (08:57 -0400)
commit05d302ffe2158b45d8ca7e625811fd2d9144b736
treec18a2d2be313399323db1fd828d0134fdbeb5e44
parent459cc94507071eec18b746f57a4ec82578a38b54
st/omx: fix decoder fillout for the OMX result buffer

The call for vl_video_buffer_adjust_size is with wrong order of
arguments, apparently it will have problem when interlaced false;

The size of OMX result buffer depends on real size of clips, vl buffer
dimension is aligned with 16, so 1080p(1920*1080) video will overflow
the OMX buffer

Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Tested-by: Julien Isorce <j.isorce@samsung.com>
src/gallium/state_trackers/omx/vid_dec.c