[FFmpeg-cvslog] r11677 - trunk/libavcodec/h263.c

Michael Niedermayer michaelni
Thu Jan 31 02:16:35 CET 2008


On Thu, Jan 31, 2008 at 01:05:44AM +0100, bcoudurier wrote:
> Author: bcoudurier
> Date: Thu Jan 31 01:05:44 2008
> New Revision: 11677
> 
> Log:
> init to 0, fix warning: h263.c:4730: warning: 'dc_pred_dir' may be used uninitialized in this function
> 
> Modified:
>    trunk/libavcodec/h263.c
> 
> Modified: trunk/libavcodec/h263.c
> ==============================================================================
> --- trunk/libavcodec/h263.c	(original)
> +++ trunk/libavcodec/h263.c	Thu Jan 31 01:05:44 2008
> @@ -4727,7 +4727,7 @@ static inline int mpeg4_decode_block(Mpe
>                                int n, int coded, int intra, int rvlc)
>  {
>      int level, i, last, run;
> -    int dc_pred_dir;
> +    int dc_pred_dir = 0;
>      RLTable * rl;
>      RL_VLC_ELEM * rl_vlc;
>      const uint8_t * scan_table;

I would consider this function speed critical, after all its executed once per
8x8 block, that is 216000 times per second for 640x480 YV12 30fps in the
worst case.

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

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- 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/20080131/86633c30/attachment.pgp>



More information about the ffmpeg-cvslog mailing list