OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ad447
)
aacsbr: handle m_max values smaller than 4.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Thu, 22 Mar 2012 18:50:48 +0000
(11:50 -0700)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Fri, 23 Mar 2012 19:56:08 +0000
(12:56 -0700)
Prevents a signflip in the counter, and a subsequent crash because of
overreads/overwrites.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/x86/sbrdsp.asm
patch
|
blob
|
history
diff --git
a/libavcodec/x86/sbrdsp.asm
b/libavcodec/x86/sbrdsp.asm
index
31a1c8b
..
6f66327
100644
(file)
--- a/
libavcodec/x86/sbrdsp.asm
+++ b/
libavcodec/x86/sbrdsp.asm
@@
-81,6
+81,7
@@
cglobal sbr_hf_g_filt, 5, 6, 5
lea r2, [r2 + r3*4]
lea r0, [r0 + r3*8]
neg r3
+ jz .loop1
.loop4:
movlps m0, [r2 + 4*r3 + 0]
movlps m1, [r2 + 4*r3 + 8]