]> git.sesse.net Git - mlt/commitdiff
Only do channelcopy/swap if there is valid work.
authorDan Dennedy <dan@dennedy.org>
Mon, 16 Aug 2010 00:58:42 +0000 (17:58 -0700)
committerDan Dennedy <dan@dennedy.org>
Mon, 16 Aug 2010 00:58:42 +0000 (17:58 -0700)
src/modules/core/filter_channelcopy.c

index 02730495057e9b5f22125846748bd3910bb953b7..cbfb709b6005b2bf111d7719ce95aa3734cfec92 100644 (file)
@@ -45,6 +45,7 @@ static int filter_get_audio( mlt_frame frame, void **buffer, mlt_audio_format *f
        mlt_frame_get_audio( frame, buffer, format, frequency, channels, samples );
 
        // Copy channels as necessary
+       if ( from != to)
        switch ( *format )
        {
                case mlt_audio_s16: