[Ffmpeg-devel] Weird line in cabac.h

Steve Lhomme slhomme
Tue Oct 17 20:30:40 CEST 2006

Hi everyone,

We're currently adding most of the current FFMPEG to DrFFMPEG and MSVC 
spits a warning on the following line in cabac.h:

static void put_cabac(CABACContext *c, uint8_t * const state, int bit){
     int RangeLPS= ff_h264_lps_range[2*(c->range&0xC0) + *state];

And ff_h264_lps_range is defined as such:

extern uint8_t ff_h264_lps_range[4][2*64];  ///< rangeTabLPS

As you can see ff_h264_lps_range[] returns a uint8_t * not and int or an 
int *. Is it intended ? Should it be an intptr_t then ?


More information about the ffmpeg-devel mailing list