From 18e199bd7baccb811da4838b8e1e27d47d578355 Mon Sep 17 00:00:00 2001 From: Dario Casalinuovo Date: Sat, 13 Feb 2016 16:52:59 +0100 Subject: [PATCH] video_mixer: Better to use array syntax --- .../media/media-add-ons/video_mixer/BufferMixer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/add-ons/media/media-add-ons/video_mixer/BufferMixer.cpp b/src/add-ons/media/media-add-ons/video_mixer/BufferMixer.cpp index 1e5df289cc..22aeda7cbb 100644 --- a/src/add-ons/media/media-add-ons/video_mixer/BufferMixer.cpp +++ b/src/add-ons/media/media-add-ons/video_mixer/BufferMixer.cpp @@ -63,10 +63,10 @@ BufferMixer::Merge(BBuffer *input, BBuffer *output) { c2 = *source++; c3 = *source++; alpha = *source++; - *(destination) = ALPHABLEND(c1, *destination, alpha); - *(destination+1) = ALPHABLEND(c2, *destination, alpha); - *(destination+2) = ALPHABLEND(c3, *destination, alpha); - *(destination+3) = 0x00; + destination[0] = ALPHABLEND(c1, destination[0], alpha); + destination[1] = ALPHABLEND(c2, destination[1], alpha); + destination[2] = ALPHABLEND(c3, destination[2], alpha); + destination[3] = 0x00; destination += 4; } }