[PATCH][weston] vaapi-recorder: Fix allocator sizeof operand mismatch
Lucas Tanure
tanure at linux.com
Sun Sep 20 07:12:50 PDT 2015
Result of 'calloc' is converted to a pointer of type 'unsigned int', which is
incompatible with sizeof operand type 'int'
Signed-off-by: Lucas Tanure <tanure at linux.com>
---
src/vaapi-recorder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/vaapi-recorder.c b/src/vaapi-recorder.c
index c93f7b9..1fd7ebe 100644
--- a/src/vaapi-recorder.c
+++ b/src/vaapi-recorder.c
@@ -141,7 +141,7 @@ static void
bitstream_start(struct bitstream *bs)
{
bs->max_size_in_dword = BITSTREAM_ALLOCATE_STEPPING;
- bs->buffer = calloc(bs->max_size_in_dword * sizeof(int), 1);
+ bs->buffer = calloc(bs->max_size_in_dword * sizeof(unsigned int), 1);
bs->bit_offset = 0;
}
--
2.5.3
More information about the wayland-devel
mailing list