diff options
author | Indrajit Das <[email protected]> | 2016-05-27 18:27:15 +0530 |
---|---|---|
committer | Christian König <[email protected]> | 2016-07-04 11:38:05 +0200 |
commit | 51227b41c6b026f5b0a3925093b91800cdfcc923 (patch) | |
tree | a7a2f6e0f936a27e80e566735a9db9a3a4255ae0 /src/gallium/drivers/radeon | |
parent | 9e3774a4606b826921f1c0ea7d8afd8f91049758 (diff) |
radeon/uvd: fix overflow error while calculating bit stream buffer size
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_uvd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c index 97765da69e3..72234175663 100644 --- a/src/gallium/drivers/radeon/radeon_uvd.c +++ b/src/gallium/drivers/radeon/radeon_uvd.c @@ -1233,7 +1233,7 @@ struct pipe_video_codec *ruvd_create_decoder(struct pipe_context *context, dec->fb_size = (info.family == CHIP_TONGA) ? FB_BUFFER_SIZE_TONGA : FB_BUFFER_SIZE; - bs_buf_size = width * height * 512 / (16 * 16); + bs_buf_size = width * height * (512 / (16 * 16)); for (i = 0; i < NUM_BUFFERS; ++i) { unsigned msg_fb_it_size = FB_BUFFER_OFFSET + dec->fb_size; STATIC_ASSERT(sizeof(struct ruvd_msg) <= FB_BUFFER_OFFSET); |