]> git.sesse.net Git - mlt/commitdiff
Fix short forward seeking in vorbis producer.
authorDan Dennedy <dan@dennedy.org>
Tue, 9 Feb 2010 05:47:05 +0000 (21:47 -0800)
committerDan Dennedy <dan@dennedy.org>
Tue, 9 Feb 2010 05:47:05 +0000 (21:47 -0800)
src/modules/vorbis/producer_vorbis.c

index 77f9216676a1cfbf656713446f052bffb05a6822..b5a12c4e365a85e685122397c61911c3038821b7 100644 (file)
@@ -306,7 +306,7 @@ static int producer_get_audio( mlt_frame frame, void **buffer, mlt_audio_format
                        {
                                ignore --;
                                audio_used -= *samples;
-                               memmove( audio_buffer, &audio_buffer[ *samples * *channels ], audio_used * sizeof( int16_t ) );
+                               memmove( audio_buffer, &audio_buffer[ *samples * *channels ], audio_used * sizeof( int16_t ) * *channels );
                                *samples = mlt_sample_calculator( fps, *frequency, expected ++ );
                        }
                }