changeset 1051:eda6e2c47b6f libavformat

Fix demuxing of AVIs with pad streams.
author kostya
date Thu, 06 Apr 2006 03:33:10 +0000
parents ece3b7eecba2
children 66bd5e175690
files avidec.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Tue Apr 04 17:44:59 2006 +0000
+++ b/avidec.c	Thu Apr 06 03:33:10 2006 +0000
@@ -290,6 +290,9 @@
 
             if (stream_index >= s->nb_streams) {
                 url_fskip(pb, size - 8);
+                /* ignore padding stream */
+                if (tag1 == MKTAG('p', 'a', 'd', 's'))
+                    stream_index--;
                 break;
             }
             st = s->streams[stream_index];