ffmpeg | branch: master | Paul B Mahol <[email protected]> | Sun Sep 18 19:30:27 
2022 +0200| [9ac777234eb474cf6960d62eaabb7ecac4e057d5] | committer: Paul B Mahol

avfilter/af_dynaudnorm: fix parameter for copy samples function

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9ac777234eb474cf6960d62eaabb7ecac4e057d5
---

 libavfilter/af_dynaudnorm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
     }
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to