mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-26 11:53:40 +08:00
swr: make literal 32 a named constant in realloc_audio()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#define C_45DB 0.594603558
|
||||
#define C_60DB 0.5
|
||||
|
||||
#define ALIGN 32
|
||||
|
||||
//TODO split options array out?
|
||||
#define OFFSET(x) offsetof(SwrContext,x)
|
||||
@@ -337,7 +338,7 @@ static int realloc_audio(AudioData *a, int count){
|
||||
|
||||
count*=2;
|
||||
|
||||
countb= FFALIGN(count*a->bps, 32);
|
||||
countb= FFALIGN(count*a->bps, ALIGN);
|
||||
old= *a;
|
||||
|
||||
av_assert0(a->bps);
|
||||
|
||||
Reference in New Issue
Block a user