cinepak: simplify, use FFMIN()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
b55aa7df6b
commit
a2b51fe87c
@ -357,8 +357,7 @@ static int cinepak_decode (CinepakContext *s)
|
||||
|
||||
s->data += 10 + s->sega_film_skip_bytes;
|
||||
|
||||
if (num_strips > MAX_STRIPS)
|
||||
num_strips = MAX_STRIPS;
|
||||
num_strips = FFMIN(num_strips, MAX_STRIPS);
|
||||
|
||||
for (i=0; i < num_strips; i++) {
|
||||
if ((s->data + 12) > eod)
|
||||
|
Loading…
x
Reference in New Issue
Block a user