Skip to content

Commit

Permalink
Fix for invalid buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
gpalsingh committed Aug 2, 2017
1 parent 07c14cf commit 64a01ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gallium/state_trackers/omx_tizonia/h264dprc.c
Expand Up @@ -592,7 +592,8 @@ static OMX_ERRORTYPE update_port_parameters(h264d_prc_t * p_prc) {
i_def = &(p_prc->stream_info);

unsigned framesize = i_def->width * i_def->height;

p_prc->in_port_def_.format.video.nFrameWidth = i_def->width;
p_prc->in_port_def_.format.video.nFrameHeight = i_def->height;
p_prc->in_port_def_.nBufferSize = framesize * 512 / (16*16);

tiz_check_omx(tiz_krn_SetParameter_internal(
Expand Down

0 comments on commit 64a01ac

Please sign in to comment.