Mercurial > libavformat.hg
changeset 4967:1d10f8b761b7 libavformat
support AVDISCARD_ALL in mpegts demuxer
author | bcoudurier |
---|---|
date | Wed, 27 May 2009 01:29:55 +0000 |
parents | a6c807c154b1 |
children | 72b7219c6337 |
files | mpegts.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegts.c Wed May 27 00:56:31 2009 +0000 +++ b/mpegts.c Wed May 27 01:29:55 2009 +0000 @@ -869,7 +869,7 @@ pes->header[2] == 0x01) { /* it must be an mpeg2 PES stream */ code = pes->header[3] | 0x100; - if (!pes->st || + if (!pes->st || pes->st->discard == AVDISCARD_ALL || !((code >= 0x1c0 && code <= 0x1df) || (code >= 0x1e0 && code <= 0x1ef) || (code == 0x1bd) || (code == 0x1fd)))