diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-09-18 19:30:27 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-09-18 19:43:41 +0200 |
commit | 9ac777234eb474cf6960d62eaabb7ecac4e057d5 (patch) | |
tree | dbf4114997ee5751e05da00d45d8969c26be290d /libavfilter/af_dynaudnorm.c | |
parent | 7f27ce68822a4ef3bdcc42df8ee07c0fe0a08f28 (diff) | |
download | ffmpeg-9ac777234eb474cf6960d62eaabb7ecac4e057d5.tar.gz |
avfilter/af_dynaudnorm: fix parameter for copy samples function
Diffstat (limited to 'libavfilter/af_dynaudnorm.c')
-rw-r--r-- | libavfilter/af_dynaudnorm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_dynaudnorm.c b/libavfilter/af_dynaudnorm.c index 4fe1a9ce1b..9505c33b49 100644 --- a/libavfilter/af_dynaudnorm.c +++ b/libavfilter/af_dynaudnorm.c @@ -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; } |