[FFmpeg-soc] [soc]: r479 - dirac/dirac.c
marco
subversion at mplayerhq.hu
Wed Jul 18 13:35:26 CEST 2007
Author: marco
Date: Wed Jul 18 13:35:26 2007
New Revision: 479
Log:
Correctly determine the sign
Modified:
dirac/dirac.c
Modified: dirac/dirac.c
==============================================================================
--- dirac/dirac.c (original)
+++ dirac/dirac.c Wed Jul 18 13:35:26 2007
@@ -884,14 +884,14 @@ static int sign_predict(AVCodecContext *
return 0;
else {
if (data[x + (y - 1) * s->padded_width] == 0) return 0;
- return FFSIGN(data[x + (y - 1) * s->padded_width] < 0);
+ return FFSIGN(data[x + (y - 1) * s->padded_width]);
}
case subband_lh:
if (h == 0)
return 0;
else {
if (data[x + y * s->padded_width - 1] == 0) return 0;
- return FFSIGN(data[x + y * s->padded_width - 1] < 0);
+ return FFSIGN(data[x + y * s->padded_width - 1]);
}
}
More information about the FFmpeg-soc
mailing list