Browse Source

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>
tags/n1.0
Christian Schmidt Luca Barbato 12 years ago
parent
commit
07584eaf4a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/mpegts.c

+ 2
- 1
libavformat/mpegts.c View File

@@ -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;



Loading…
Cancel
Save