]> git.sesse.net Git - mlt/blobdiff - src/modules/avformat/producer_avformat.c
Fix sample count and rate with audio_index=all.
[mlt] / src / modules / avformat / producer_avformat.c
index 9068f0815448160b12cb5dab19f2b11046af99e2..3dab6165de3c38852200c8ac9e3b243a4757561e 100644 (file)
@@ -2211,8 +2211,8 @@ static int producer_get_audio( mlt_frame frame, void **buffer, mlt_audio_format
                index = 0;
                index_max = FFMIN( MAX_AUDIO_STREAMS, context->nb_streams );
                *channels = self->total_channels;
-               *samples = mlt_sample_calculator( fps, FFMAX( self->max_frequency, *frequency ), position );
-               *frequency = FFMAX( self->max_frequency, *frequency );
+               *samples = mlt_sample_calculator( fps, self->max_frequency, position );
+               *frequency = self->max_frequency;
        }
 
        // Initialize the buffers