aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-01-22 01:48:11 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-22 01:48:11 +0000
commitb4aea108ebe32a190e7f8ec6bddc1214a46c4456 (patch)
tree3b186b5b70dd23451d539b81829139970d7fa003 /libavformat/avidec.c
parent4cfbbbde4272d3216c0389df2111dfddabf65f1a (diff)
downloadffmpeg-b4aea108ebe32a190e7f8ec6bddc1214a46c4456.tar.gz
support discarding of uninterresting packets
Originally committed as revision 3858 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index f394bfc3fa..d489ddfbaa 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -449,6 +449,11 @@ resync:
AVIStream *ast;
st = s->streams[n];
ast = st->priv_data;
+
+ if(st->discard){
+ url_fskip(pb, size);
+ goto resync;
+ }
if( ((ast->prefix_count<5 || sync+9 > i) && d[2]<128 && d[3]<128) ||
d[2]*256+d[3] == ast->prefix /*||