[Ffmpeg-devel] Weird line in cabac.h
Steve Lhomme
slhomme
Tue Oct 17 21:34:06 CEST 2006
M?ns Rullg?rd wrote:
> 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?
I thought only gcc compilation messages would matter, but since you
kindly ask here it is:
cabac.h(89) : warning C4047: 'initializing' : 'int' differs in levels of
indirection from 'uint8_t *'
>> 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.
>
More information about the ffmpeg-devel
mailing list