asfdec: fix assert failure on invalid files
authorUoti Urpala <uoti.urpala.pp1.inet.fi>
Sun, 24 Apr 2011 04:21:30 +0000 (07:21 +0300)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 4 May 2011 02:36:08 +0000 (22:36 -0400)
commit0bd433a916cd8d98fce47742fbf6d0f90ec941c4
tree162227da8ce9a68fa4c3c2d824e48d734c51ace3
parent0699dbb8478886826dedb1c33a0b74142a1cd863
asfdec: fix assert failure on invalid files

Add an extra size validity check in asf_read_frame_header(). Without
this asf->packet_size_left may become negative, which triggers an
assertion failure later.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/asfdec.c