aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asfdec_o.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-09-26 18:50:30 -0300
committerJames Almer <jamrial@gmail.com>2017-09-26 18:50:30 -0300
commite666c2b5ec978b0b10ed69ca34a3ed831bd0242d (patch)
tree03275350f50955482ab54c21583709bb3cc54a03 /libavformat/asfdec_o.c
parent0c005fa86f01df75be8c9cacad7530978af80900 (diff)
parent8e67039c6312ba520945f2c01b7b14df056d5ed1 (diff)
downloadffmpeg-e666c2b5ec978b0b10ed69ca34a3ed831bd0242d.tar.gz
Merge commit '8e67039c6312ba520945f2c01b7b14df056d5ed1'
* commit '8e67039c6312ba520945f2c01b7b14df056d5ed1': asfdec: Use the ASF stream count when iterating Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/asfdec_o.c')
-rw-r--r--libavformat/asfdec_o.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec_o.c b/libavformat/asfdec_o.c
index f7000b0413..7450ea0f74 100644
--- a/libavformat/asfdec_o.c
+++ b/libavformat/asfdec_o.c
@@ -1485,7 +1485,7 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt)
asf->return_subpayload = 0;
return 0;
}
- for (i = 0; i < s->nb_streams; i++) {
+ for (i = 0; i < asf->nb_streams; i++) {
ASFPacket *asf_pkt = &asf->asf_st[i]->pkt;
if (asf_pkt && !asf_pkt->size_left && asf_pkt->data_size) {
if (asf->asf_st[i]->span > 1 &&