[Ffmpeg-devel] Weird line in cabac.h

Måns Rullgård mru
Tue Oct 17 20:50:07 CEST 2006


Steve Lhomme said:
> 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:

Telling us the actual warning might have been helpful, don't you think?

> 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

It's not a function, so it doesn't return anything.

> a uint8_t *

No.

> not and int or an int *. Is it intended ?
> Should it be an intptr_t then ?

Certainly not.

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list