diff options
author | Martin Storsjo <martin@martin.st> | 2012-04-13 14:17:30 +0300 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2012-08-20 23:50:59 +0100 |
commit | 3fdb405597f0e062a9bb8af20199c5e67f0f764c (patch) | |
tree | 927a7c240a6322926289762279192c4776e7b740 /media/libstagefright/codecs/avc/enc/src/motion_est.cpp | |
parent | ccde1257952d2c073e51ecba6180060570ffa41f (diff) | |
download | frameworks_av-3fdb405597f0e062a9bb8af20199c5e67f0f764c.zip frameworks_av-3fdb405597f0e062a9bb8af20199c5e67f0f764c.tar.gz frameworks_av-3fdb405597f0e062a9bb8af20199c5e67f0f764c.tar.bz2 |
avcenc: Fix the gcc inline assembly constraints
Use +r for registers whose value is used as input to the block.
Also switch input registers to output registers with +r, for
registers that are modified by the assembly block (SUB_SAD in
sad_inline.h).
Without this, the inline assembly fails on modern gcc versions
(tested on gcc 4.6), where the intended input value never is
loaded into the registers, causing segfaults at runtime.
Currently this assembly isn't used, but this change makes it
work properly if enabled.
Change-Id: I37c247cd5c8aff213445e31ab3bd33d8f0f37e05
Diffstat (limited to 'media/libstagefright/codecs/avc/enc/src/motion_est.cpp')
0 files changed, 0 insertions, 0 deletions