asfdec: Use the ASF stream count when iterating
authorJohn Stebbins <stebbins@jetheaddev.com>
Thu, 12 Jan 2017 20:36:26 +0000 (13:36 -0700)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 4 Feb 2017 14:21:12 +0000 (15:21 +0100)
commit8e67039c6312ba520945f2c01b7b14df056d5ed1
tree890980966db108e06b8a4fd841008b5f55be1883
parent7abdd026df6a9a52d07d8174505b33cc89db7bf6
asfdec: Use the ASF stream count when iterating

The AVFormat stream count can be larger due external factors, such as
an id3 tag appended.

Avoid an out of bound read.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/asfdec.c