oggdec: Initialize stream index to -1 in ogg_packet.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 5 Aug 2012 07:45:04 +0000 (09:45 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Aug 2012 14:52:18 +0000 (16:52 +0200)
commitfb52da522c0e71b17056e4e3b06af80b88ef8b1a
tree73bb2a67a52aae0fdd761c3ab1f943d5eb95c45b
parent5231a35559c8c791716fea67db936b7456314f03
oggdec: Initialize stream index to -1 in ogg_packet.

The previous method of having to initialize it outside lead
to incorrect code: even if it was initialized, it usually was
only initialized once, thus a packet that could not be matched
to any stream would just be processed with the return values
from the previous call.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
(cherry picked from commit 69aeba1396d5a13e79cbc3cc9f49fd6896addb82)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggdec.c