[FFmpeg-cvslog] r10241 - trunk/libavcodec/unary.h

Vitor Sessak vitor1001
Fri Aug 31 16:39:48 CEST 2007


Hi

aurel wrote:
> Author: aurel
> Date: Mon Aug 27 00:34:49 2007
> New Revision: 10241
> 
> Log:
> cleanup get_unary()

[...]

> 
> -#else
> -  unsigned int buf;
> -  int log;
> -
> -  OPEN_READER(re, gb);
> -  UPDATE_CACHE(re, gb);
> -  buf=GET_CACHE(re, gb); //Still not sure
> -  if (stop) buf = ~buf;
> -
> -  log= av_log2(-buf); //FIXME: -?
> -  if (log < limit){
> -    LAST_SKIP_BITS(re, gb, log+1);
> -    CLOSE_READER(re, gb);
> -    return log;
> -  }
> -
> -  LAST_SKIP_BITS(re, gb, limit);
> -  CLOSE_READER(re, gb);
> -  return limit;
> -#endif
>  }

Are you sure it is a good idea to remove the disabled code? It seems to 
be the most efficient way to implement get_unary...

-Vitor




More information about the ffmpeg-cvslog mailing list