asfdec: break if EOF is reached after asf_read_packet_header
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Wed, 6 Jan 2016 20:09:19 +0000 (21:09 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 7 Feb 2016 02:12:33 +0000 (03:12 +0100)
commita32dbf2aed3bb720a28141e1e84284ade3969a49
tree30839a61a14cc11e47a6c8f34bf00f76b2fefe09
parent389b79842c67b1f5730215a752a5f89cb1b8d9a3
asfdec: break if EOF is reached after asf_read_packet_header

asf_read_payload can unset eof_reached, so check it also before calling
that function.

This fixes infinite loops.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Alexandra Hájková <alexandra@khirnov.net>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/asfdec.c