From 30667f42f5c57914a3c0735b56e173b5a0865958 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 28 Sep 2004 09:55:44 +0000 Subject: [PATCH] pads stream Originally committed as revision 3531 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avidec.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 2de340c818..156b255ec1 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -270,7 +270,13 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap) codec_type = CODEC_TYPE_DATA; //CODEC_TYPE_SUB ? FIXME url_fskip(pb, size - 8); break; + case MKTAG('p', 'a', 'd', 's'): + codec_type = CODEC_TYPE_UNKNOWN; + url_fskip(pb, size - 8); + stream_index--; + break; default: + av_log(s, AV_LOG_ERROR, "unknown stream type %X\n", tag1); goto fail; } break;