asfdec: make sure packet_size is non-zero before seeking
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Thu, 7 Jan 2016 09:02:53 +0000 (10:02 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 7 Feb 2016 02:12:33 +0000 (03:12 +0100)
commit2e6ba1993ef41af4a224e854077e4ba4d30f246b
treed926e23c7b1fd9f6719fd480eff450b931998b25
parentbf50607ab76157ba251a01f5baa5cf67b23b2ee9
asfdec: make sure packet_size is non-zero before seeking

This fixes infinite loops due to seeking back.

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