[FFmpeg-soc] [soc]: r462 - dirac/dirac.c
Michael Niedermayer
michaelni at gmx.at
Tue Jul 17 21:41:10 CEST 2007
On Tue, Jul 17, 2007 at 07:32:21PM +0200, marco wrote:
> Author: marco
> Date: Tue Jul 17 19:32:21 2007
> New Revision: 462
>
> Log:
> Use FFSIGN and FFMIN instead of the current code
>
>
> Modified:
> dirac/dirac.c
>
[...]
> @@ -846,14 +845,14 @@ static int sign_predict(AVCodecContext *
> return 0;
> else {
> if (data[x + (y - 1) * s->padded_width] == 0) return 0;
> - return (data[x + (y - 1) * s->padded_width] < 0) ? -1 : 1;
> + return FFSIGN(data[x + (y - 1) * s->padded_width] < 0);
> }
> case subband_lh:
> if (h == 0)
> return 0;
> else {
> if (data[x + y * s->padded_width - 1] == 0) return 0;
> - return (data[x + y * s->padded_width - 1] < 0) ? -1 : 1;
> + return FFSIGN(data[x + y * s->padded_width - 1] < 0);
> }
> }
the < 0 looks like a oversight ...
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20070717/8dbeb962/attachment.pgp>
More information about the FFmpeg-soc
mailing list