avfilter/af_dynaudnorm: fix parameter for copy samples function

This commit is contained in:
Paul B Mahol 2022-09-18 19:30:27 +02:00
parent 7f27ce6882
commit 9ac777234e
1 changed files with 1 additions and 1 deletions

View File

@ -707,7 +707,7 @@ static int analyze_frame(DynamicAudioNormalizerContext *s, AVFilterLink *outlink
analyze_frame = s->window;
} else {
av_samples_copy(s->window->extended_data, (*frame)->extended_data, 0, 0,
s->frame_len, (*frame)->ch_layout.nb_channels, (*frame)->format);
FFMIN(s->frame_len, (*frame)->nb_samples), (*frame)->ch_layout.nb_channels, (*frame)->format);
analyze_frame = *frame;
}