ARM: fix j_rev_dct_ARM
authorMåns Rullgård <mans@mansr.com>
Wed, 12 Nov 2008 20:23:36 +0000 (20:23 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 12 Nov 2008 20:23:36 +0000 (20:23 +0000)
commit77753f874a7b95400a694eaf6739cc77539d6580
tree6ca3245a9c54f1e33e56ffe40320a48216491967
parent3a84713aaa5a0f83cbb3fdca62c83df609822c9c
ARM: fix j_rev_dct_ARM

This is a bugfix for ARMv4 assembly implementation of 'j_rev_dct'
function.

The problem was in the incorrect partially empty row detection. Even
if the first two coefficients in the row were nonzero, it handled this
just like the case with only the first nonzero coefficient.

Now this function produces exactly the same output as the stripped
down reference C version of 'j_rev_dct' (with the nested checks like
'if (d6) { if (d2) { ...' always evaluated as true, avoiding shortcut
branches).

Originally committed as revision 15805 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/armv4l/jrevdct_arm.S