swfdec: print warning when len is cliped
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
31f9cf38f0
commit
d276f28b7d
@ -456,6 +456,8 @@ bitmap_end_skip:
|
|||||||
av_log(s, AV_LOG_DEBUG, "Unknown tag: %d\n", tag);
|
av_log(s, AV_LOG_DEBUG, "Unknown tag: %d\n", tag);
|
||||||
}
|
}
|
||||||
skip:
|
skip:
|
||||||
|
if(len<0)
|
||||||
|
av_log(s, AV_LOG_WARNING, "Cliping len %d\n", len);
|
||||||
len = FFMAX(0, len);
|
len = FFMAX(0, len);
|
||||||
avio_skip(pb, len);
|
avio_skip(pb, len);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user