[FFmpeg-cvslog] swr: make literal 32 a named constant in realloc_audio()
Michael Niedermayer
git at videolan.org
Sat May 19 19:28:55 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 19 17:45:12 2012 +0200| [bdbfd4569dde7ce3e82dcaf36e794a978266cf95] | committer: Michael Niedermayer
swr: make literal 32 a named constant in realloc_audio()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bdbfd4569dde7ce3e82dcaf36e794a978266cf95
---
libswresample/swresample.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index 7a75fdb..dbc502f 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list