History

avfilter/asrc_anoisesrc: change color variable to int

Or it'll cause invalid color and s->filter is NULL. Please reproduce it with below command on big endian system: $ ./ffmpeg -f lavfi -i "anoisesrc=d=60:c=1:r=48000" -f s16le -c:a pcm_s16le -f null - Segmentation fault (core dumped)

Limin Wang committed 7 years ago

Commit e1c4ce41 parent 069be4a1 file · +1 −1Browse files

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

Unified · Split

libavfilter/asrc_anoisesrc.c+1−1
@@ -30,7 +30,7 @@ typedef struct ANoiseSrcContext { · 29 unmodified lines
30 int sample_rate;30 int sample_rate;
31 double amplitude;31 double amplitude;
32 int64_t duration;32 int64_t duration;
33 int64_t color;33 int color;
34 int64_t seed;34 int64_t seed;
35 int nb_samples;35 int nb_samples;
36 36

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