Commit 07584eaf authored by Christian Schmidt's avatar Christian Schmidt Committed by Luca Barbato

mpegts: check substreams before discarding

Allow to extract the AC3 core from TrueHD with the "copy" codec.
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 62c9ae11
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment