[FFmpeg-cvslog] r20009 - trunk/libavcodec/svq1dec.c
reimar
subversion
Thu Sep 24 11:44:51 CEST 2009
Author: reimar
Date: Thu Sep 24 11:44:51 2009
New Revision: 20009
Log:
Use INIT_VLC_STATIC where easily possible in svq1dec
Modified:
trunk/libavcodec/svq1dec.c
Modified: trunk/libavcodec/svq1dec.c
==============================================================================
--- trunk/libavcodec/svq1dec.c Thu Sep 24 08:33:16 2009 (r20008)
+++ trunk/libavcodec/svq1dec.c Thu Sep 24 11:44:51 2009 (r20009)
@@ -780,13 +780,13 @@ static av_cold int svq1_decode_init(AVCo
s->flags= avctx->flags;
if (MPV_common_init(s) < 0) return -1;
- init_vlc(&svq1_block_type, 2, 4,
+ INIT_VLC_STATIC(&svq1_block_type, 2, 4,
&ff_svq1_block_type_vlc[0][1], 2, 1,
- &ff_svq1_block_type_vlc[0][0], 2, 1, INIT_VLC_USE_STATIC);
+ &ff_svq1_block_type_vlc[0][0], 2, 1, 6);
- init_vlc(&svq1_motion_component, 7, 33,
+ INIT_VLC_STATIC(&svq1_motion_component, 7, 33,
&mvtab[0][1], 2, 1,
- &mvtab[0][0], 2, 1, INIT_VLC_USE_STATIC);
+ &mvtab[0][0], 2, 1, 176);
for (i = 0; i < 6; i++) {
init_vlc(&svq1_intra_multistage[i], 3, 8,
@@ -797,13 +797,13 @@ static av_cold int svq1_decode_init(AVCo
&ff_svq1_inter_multistage_vlc[i][0][0], 2, 1, INIT_VLC_USE_STATIC);
}
- init_vlc(&svq1_intra_mean, 8, 256,
+ INIT_VLC_STATIC(&svq1_intra_mean, 8, 256,
&ff_svq1_intra_mean_vlc[0][1], 4, 2,
- &ff_svq1_intra_mean_vlc[0][0], 4, 2, INIT_VLC_USE_STATIC);
+ &ff_svq1_intra_mean_vlc[0][0], 4, 2, 632);
- init_vlc(&svq1_inter_mean, 9, 512,
+ INIT_VLC_STATIC(&svq1_inter_mean, 9, 512,
&ff_svq1_inter_mean_vlc[0][1], 4, 2,
- &ff_svq1_inter_mean_vlc[0][0], 4, 2, INIT_VLC_USE_STATIC);
+ &ff_svq1_inter_mean_vlc[0][0], 4, 2, 1434);
return 0;
}
More information about the ffmpeg-cvslog
mailing list