demux/asf: fix 17601: fix undesired integer underflow
commite2fb10438ae71913bf4f90834c305867329350fa
authorFilip Roséen <filip@atch.se>
Fri, 4 Nov 2016 09:02:04 +0000 (4 10:02 +0100)
committerThomas Guillem <thomas@gllm.fr>
Fri, 4 Nov 2016 09:11:47 +0000 (4 10:11 +0100)
tree4c0326fbf09d05060e3db5984be92d3eeaea49b6
parent793c499fd6e13debc8c4b6f80dd2c8eb10676abe
demux/asf: fix 17601: fix undesired integer underflow

This commit shall be viewed as a fix-up of 86835f9.

The previous commit in question did not take into account that the
left-hand side expression can of course result in a negative value,
meaning that the value-promotion necessary for the comparison to take
place would result in a very large value (where we expect a very small
one).

fixes #17601

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/demux/asf/asf.c