mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 22:40:23 +00:00
support AVDISCARD_ALL in mpegts demuxer
Originally committed as revision 18964 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
bdfa98249a
commit
6c7c2f7bb3
@ -869,7 +869,7 @@ static int mpegts_push_data(MpegTSFilter *filter,
|
||||
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)))
|
||||
|
Loading…
Reference in New Issue
Block a user