aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-01-22 13:36:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-01-22 13:36:02 +0000
commitb9866ebcc7d9891fb6b07cab70319fe1742a100a (patch)
tree3e74ec233cd2ef881ee097956e7a8ca3e6b215cf /libavformat/mov.c
parente19456e3ee263ae1c46b623c8394394710721ff4 (diff)
downloadffmpeg-b9866ebcc7d9891fb6b07cab70319fe1742a100a.tar.gz
support discarding uninterresting packets
Originally committed as revision 3860 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ff04be5f02..4ea401f95d 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1766,7 +1766,7 @@ again:
}
//av_log(NULL, AV_LOG_DEBUG, "chunk: [%i] %lli -> %lli\n", st_id, mov->next_chunk_offset, offset);
- if(!sc->is_ff_stream) {
+ if(!sc->is_ff_stream || s->streams[sc->ffindex]->discard) {
url_fskip(&s->pb, (offset - mov->next_chunk_offset));
mov->next_chunk_offset = offset;
offset = 0x0FFFFFFFFFFFFFFFLL;