diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2016-10-14 13:01:27 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-12-05 18:29:12 +0100 |
commit | 2dcc0bce3924ebc96ed7f4956b007d4b84a99750 (patch) | |
tree | 510ecc59c3f69e910e4923ee45198dc2c1dc2368 /libavcodec/mediacodec_sw_buffer.c | |
parent | 0e3dc45ce81f9c9db5a6a6e2df96670164e82dec (diff) | |
download | ffmpeg-2dcc0bce3924ebc96ed7f4956b007d4b84a99750.tar.gz |
vp9: change order of operations in adapt_prob().
This is intended to workaround bug "665 Integer Divide Instruction May
Cause Unpredictable Behavior" on some early AMD CPUs, which causes a
div-by-zero in this codepath, such as reported in Mozilla bug #1293996.
Note that this isn't guaranteed to fix the bug, since a compiler is free
to reorder instructions that don't depend on each other. However, it
appears to fix the bug in Firefox, and a similar patch was applied to
libvpx also (see Chrome bug #599899).
(cherry picked from commit be885da3427c5d9a6fa68229d16318afffe67193)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mediacodec_sw_buffer.c')
0 files changed, 0 insertions, 0 deletions