[FFmpeg-devel] [RFC] [PATCH] Make ModeAlphabet constant in vp3.c

Michael Niedermayer michaelni
Fri Jan 11 20:39:21 CET 2008


On Fri, Jan 11, 2008 at 07:15:10PM +0100, Diego 'Flameeyes' Petten? wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
> 
> > ARGH! ideg! no, this is wrong, and the original is no better
> > please _REMOVE_ the non constant static not move it around
> 
> Hope this is what you meant :)
> 

> Make ModeAlphabet a constant table, and use a temporary table instead for
> 
> From: Diego 'Flameeyes' Petten? <flameeyes at gmail.com>
> 
> the custom mode.
[...]
>          for (i = 0; i < 8; i++)
>              debug_modes("      mode[%d][%d] = %d\n", scheme, i,
> -                ModeAlphabet[scheme][i]);
> +			((scheme != 0 ) ? ModeAlphabet[scheme-1] : custom_mode)[i]);

tabs ...


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080111/ab2eb016/attachment.pgp>



More information about the ffmpeg-devel mailing list