Browse files

Fix sample count and rate with audio_index=all.

  • Loading branch information...
1 parent 8a2bec3 commit 8a38038b6265735919473d7b0329694ef9cb28d6 @ddennedy ddennedy committed Jul 29, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/modules/avformat/producer_avformat.c
View
4 src/modules/avformat/producer_avformat.c
@@ -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

0 comments on commit 8a38038

Please sign in to comment.