ogg: Fix potential infinite discard loop
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 18 Aug 2013 15:40:51 +0000 (17:40 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 24 Aug 2013 14:58:13 +0000 (16:58 +0200)
commitcbc6ded5b780195edc93d37f8b9e8eb6e00e8f0a
treee8ec0c19062fc6f34892a6078b4d3a171260a842
parent93fbabb60f723ea66794cdad071e843720719cf4
ogg: Fix potential infinite discard loop

Seeking in certain broken files would cause ogg_read_timestamp
to fail because ogg_packet would go into a state where all packets
of stream 1 would be discarded until the end of the stream.

Bug-Id: 553
CC: libav-stable@libav.org
Signed-off-by: Jan Gerber <j@v2v.cc>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 9a27acae9e6b7d0bf74c5b878af9c42495a546f3)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/oggdec.c