[Ffmpeg-devel] Re: [PATCH] closed gop flag change
Måns Rullgård
mru
Fri Jun 9 00:59:55 CEST 2006
Baptiste COUDURIER <baptiste.coudurier at smartjog.com> writes:
> M?ns Rullg?rd wrote:
>> Baptiste COUDURIER <baptiste.coudurier at smartjog.com> writes:
>>
>>> Hi,
>>>
>>> CODEC_FLAG_CLOSED_GOP value is too high to be taken into account. Patch
>>> changes value to CODEC_FLAG2_CLOSED_GOP and now uses flags2.
>>
>> [...]
>>
>>> -#define CODEC_FLAG_CLOSED_GOP 0x80000000
>>
>> What are you talking about? That's using no more than 32 bits.
>>
>
> {name = 0x8389ea9 "cgop", help = 0x8389eae "closed gop", offset = 0,
> type = FF_OPT_TYPE_CONST, default_val = 2147483648, min = -2147483648,
> max = 2147483647,
>
> 0x80000000 > INT_MAX, avctx->flags is "int".
>
> No ? Am I missing something ?
OK, there appears to be a problem. The solution is to make variable
unsigned. That will not break existing code.
--
M?ns Rullg?rd
mru at inprovide.com
More information about the ffmpeg-devel
mailing list