]> git.sesse.net Git - mlt/commitdiff
Fix offset to alpha component on OS X.
authorDan Dennedy <dan@dennedy.org>
Sat, 27 Feb 2010 08:15:13 +0000 (00:15 -0800)
committerDan Dennedy <dan@dennedy.org>
Sat, 27 Feb 2010 08:15:13 +0000 (00:15 -0800)
src/modules/avformat/consumer_avformat.c

index 226ef6493a4acb851dcc0210e7fffc7aeeb3c254..9dacb50a52991f1a6ce3ca1af66b9fbc76c533d8 100644 (file)
@@ -1175,11 +1175,7 @@ static void *consumer_thread( void *arg )
                                                        for ( i = 0; i < height; i ++ )
                                                        {
                                                                n = ( width + 7 ) / 8;
-                                                               p = output->data[ 0 ] + i * output->linesize[ 0 ];
-
-                                                               #ifndef __DARWIN__
-                                                               p += 3;
-                                                               #endif
+                                                               p = output->data[ 0 ] + i * output->linesize[ 0 ] + 3;
 
                                                                switch( width % 8 )
                                                                {