diff options
author | Christian Schmidt <schmidt@digadd.de> | 2012-09-06 18:43:24 +0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-09-13 01:43:53 +0400 |
commit | 07584eaf4a95db3f11d3bc411f9786932829e82b (patch) | |
tree | e8648d769532153cd03d1bab85c5e365eb19e4bb | |
parent | 62c9ae11a7f9716848de0c26df855d6b8071eb16 (diff) |
mpegts: check substreams before discarding
Allow to extract the AC3 core from TrueHD with the "copy" codec.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavformat/mpegts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 40a983baeb..a3d5e8e835 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -784,7 +784,8 @@ static int mpegts_push_data(MpegTSFilter *filter, code = pes->header[3] | 0x100; av_dlog(pes->stream, "pid=%x pes_code=%#x\n", pes->pid, code); - if ((pes->st && pes->st->discard == AVDISCARD_ALL) || + if ((pes->st && pes->st->discard == AVDISCARD_ALL && + (!pes->sub_st || pes->sub_st->discard == AVDISCARD_ALL)) || code == 0x1be) /* padding_stream */ goto skip; |