History

avfilter/af_dynaudnorm: fix parameter for copy samples function

Paul B Mahol committed 4 years ago

Commit 9ac77721 parent 7f27ce61 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_dynaudnorm.c+1−1
@@ -707,7 +707,7 @@ static int analyze_frame(DynamicAudioNormalizerContext *s, AVFilterLink *outlink · 706 unmodified lines
707707 analyze_frame = s->window;
708708 } else {
709709 av_samples_copy(s->window->extended_data, (*frame)->extended_data, 0, 0,
710− s->frame_len, (*frame)->ch_layout.nb_channels, (*frame)->format);
710+ FFMIN(s->frame_len, (*frame)->nb_samples), (*frame)->ch_layout.nb_channels, (*frame)->format);
711711 analyze_frame = *frame;
712712 }
713713

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t