Skip to content

Commit

Permalink
mpegts: check substreams before discarding
Browse files Browse the repository at this point in the history
Allow to extract the AC3 core from TrueHD with the "copy" codec.

From FFmpeg's 07584ea commit
  • Loading branch information
jyavenard committed Jul 16, 2013
1 parent c269fdc commit c9a51ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/external/FFmpeg/libavformat/mpegts-mythtv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,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;

Expand Down

0 comments on commit c9a51ab

Please sign in to comment.