diff options
author | Lucas Tanure <tanure@linux.com> | 2015-09-20 11:12:50 -0300 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-09-22 17:22:19 -0700 |
commit | bfae30d814d75b1ca0c75e325977a3d55b62266b (patch) | |
tree | c84ce0a1d0f1ded46a1e5f30e45ff9b4321e3e7e /src/vaapi-recorder.c | |
parent | 193c7a54a82995c87cdded798dc7db33c90763de (diff) | |
download | weston-bfae30d814d75b1ca0c75e325977a3d55b62266b.tar.gz |
vaapi-recorder: Fix allocator sizeof operand mismatch
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@linux.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'src/vaapi-recorder.c')
-rw-r--r-- | src/vaapi-recorder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vaapi-recorder.c b/src/vaapi-recorder.c index c93f7b94..1fd7ebe6 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; } |