[haiku-commits] haiku: hrev50084 - src/add-ons/media/media-add-ons/video_mixer

  • From: b.vitruvio@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 13 Feb 2016 17:02:20 +0100 (CET)

hrev50084 adds 1 changeset to branch 'master'
old head: 127a93c293ce5174cbaa82ad9e85c827d1a4bc9e
new head: 18e199bd7baccb811da4838b8e1e27d47d578355
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=18e199bd7bac+%5E127a93c293ce

----------------------------------------------------------------------------

18e199bd7bac: video_mixer: Better to use array syntax

                                [ Dario Casalinuovo <b.vitruvio@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev50084
Commit:      18e199bd7baccb811da4838b8e1e27d47d578355
URL:         http://cgit.haiku-os.org/haiku/commit/?id=18e199bd7bac
Author:      Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
Date:        Sat Feb 13 15:52:59 2016 UTC

----------------------------------------------------------------------------

1 file changed, 4 insertions(+), 4 deletions(-)
src/add-ons/media/media-add-ons/video_mixer/BufferMixer.cpp | 8 ++++----

----------------------------------------------------------------------------

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 1e5df28..22aeda7 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;
        }
 }


Other related posts: