comparison mov.c @ 652:b47948262721 libavformat

support discarding uninterresting packets
author michael
date Sat, 22 Jan 2005 13:36:02 +0000
parents 4f45848cc1ec
children c61da0556426
comparison
equal deleted inserted replaced
651:6a5ba24b2c6b 652:b47948262721
1764 url_fskip(&s->pb, (offset - mov->next_chunk_offset)); 1764 url_fskip(&s->pb, (offset - mov->next_chunk_offset));
1765 mov->next_chunk_offset = offset; 1765 mov->next_chunk_offset = offset;
1766 } 1766 }
1767 1767
1768 //av_log(NULL, AV_LOG_DEBUG, "chunk: [%i] %lli -> %lli\n", st_id, mov->next_chunk_offset, offset); 1768 //av_log(NULL, AV_LOG_DEBUG, "chunk: [%i] %lli -> %lli\n", st_id, mov->next_chunk_offset, offset);
1769 if(!sc->is_ff_stream) { 1769 if(!sc->is_ff_stream || s->streams[sc->ffindex]->discard) {
1770 url_fskip(&s->pb, (offset - mov->next_chunk_offset)); 1770 url_fskip(&s->pb, (offset - mov->next_chunk_offset));
1771 mov->next_chunk_offset = offset; 1771 mov->next_chunk_offset = offset;
1772 offset = 0x0FFFFFFFFFFFFFFFLL; 1772 offset = 0x0FFFFFFFFFFFFFFFLL;
1773 goto again; 1773 goto again;
1774 } 1774 }