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)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 5 Aug 2012 17:47:52 +0000 (19:47 +0200)
commit69aeba1396d5a13e79cbc3cc9f49fd6896addb82
tree8af73508e1ab22f93ac2c104254ac3ae0fecffb4
parenta4163b2d6583396845e06b1b976c3a981eb8cb1c
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>
libavformat/oggdec.c