On 12/02/14 13:53, Janne Grunau wrote:
> On 2014-02-12 13:08:43 +0100, Luca Barbato wrote:
>> On 12/02/14 12:52, Janne Grunau wrote:
>>> Removes the bogus but scary looking warning 'libavcodec/h264.c:4529:49:
>>> warning: array subscript is below array bounds [-Warray-bounds]'.
>>> ---
>>>  libavcodec/h264.c | 4 ++--
>>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>>
>>
>> Probably ok, we never use -1 for that variable, right?
> 
> no, we just set it to 0, increment it, and compare it for equality with
> signed variables which should be strictly positive. Otherwise the warning
> would not be bogus but warranted. gcc jsut can't track the fact that
> context_count is always >= 0 over a function call.
> 

Then ok for sure.

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to