[FFmpeg-cvslog] r18681 - trunk/libavcodec/rv34.c
Michael Niedermayer
michaelni
Sun Apr 26 02:45:41 CEST 2009
On Sat, Apr 25, 2009 at 07:47:38AM +0200, kostya wrote:
> Author: kostya
> Date: Sat Apr 25 07:47:38 2009
> New Revision: 18681
>
> Log:
> Get rid of monstrous static table and initialize VLCs for RV3/4 dynamically.
>
[...]
> +/**
> + * Initialize all tables.
> + */
> +static av_cold void rv34_free_tables(void)
seems the journey to chernobyl did more harm than good
> +{
> + int i, j, k;
> +
> + for(i = 0; i < NUM_INTRA_TABLES; i++){
> + for(j = 0; j < 2; j++){
> + free_vlc(&intra_vlcs[i].cbppattern[j]);
> + free_vlc(&intra_vlcs[i].second_pattern[j]);
> + free_vlc(&intra_vlcs[i].third_pattern[j]);
> + for(k = 0; k < 4; k++){
> + free_vlc(&intra_vlcs[i].cbp[j][k]);
> + }
> + }
anyway your code is totally utter broken now, thats besides the fact that
the very same monstrous tables are still there
before it all worked now 2 instances of rv will cause double
frees or at the least crash, you treat the static tables like they are
owned by a codec instance
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- 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-cvslog/attachments/20090426/ab8b155d/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list