Mercurial > mplayer.hg
changeset 17724:b6b34e21941b
print ts_probe; 0x88 .. 0x8F in pes_private streams are not AC3 but DTS tracks (unsupported); save the size of the payload of the current PES packet in any case (used for ac3 detection)
author | nicodvb |
---|---|
date | Sat, 04 Mar 2006 11:00:20 +0000 |
parents | 7337cbf41e2d |
children | d7dd016cb97a |
files | libmpdemux/demux_ts.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c Sat Mar 04 10:26:46 2006 +0000 +++ b/libmpdemux/demux_ts.c Sat Mar 04 11:00:20 2006 +0000 @@ -963,7 +963,7 @@ } - mp_msg(MSGT_DEMUXER,MSGL_INFO, "Opened TS demuxer, audio: %x(pid %d), video: %x(pid %d)...POS=%"PRIu64"\n", params.atype, demuxer->audio->id, params.vtype, demuxer->video->id, (uint64_t) start_pos); + mp_msg(MSGT_DEMUXER,MSGL_INFO, "Opened TS demuxer, audio: %x(pid %d), video: %x(pid %d)...POS=%"PRIu64", PROBE=%"PRIu64"\n", params.atype, demuxer->audio->id, params.vtype, demuxer->video->id, (uint64_t) start_pos, ts_probe); start_pos = (start_pos <= priv->ts.packet_size ? 0 : start_pos - priv->ts.packet_size); @@ -1315,7 +1315,7 @@ return 1; } - else if ((p[0] & 0xF0) == 0x80) + else if ((p[0] & 0xF8) == 0x80) { mp_msg(MSGT_DEMUX, MSGL_DBG2, "A52 WITH HEADER\n"); es->start = p+4; @@ -2867,6 +2867,8 @@ { if(es->type == UNKNOWN) return 0; + + tss->payload_size = es->payload_size; if(len == 0) { if(tss->type != UNKNOWN)