changeset 18564:c56569da9230

fixed wrong assignment of stream type in generic PES_PRIVATE1 streams (didn't respect the type qualified in the PMT)
author nicodvb
date Sun, 04 Jun 2006 23:16:09 +0000
parents cd115dadae19
children 0eaccc94c90c
files libmpdemux/demux_ts.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Sun Jun 04 23:11:40 2006 +0000
+++ b/libmpdemux/demux_ts.c	Sun Jun 04 23:16:09 2006 +0000
@@ -1351,7 +1351,7 @@
 			mp_msg(MSGT_DEMUX, MSGL_DBG2, "PES_PRIVATE1\n");
 			es->start   = p;
 			es->size    = packet_len;
-			es->type    = PES_PRIVATE1;
+			es->type    = (type_from_pmt == UNKNOWN ? PES_PRIVATE1 : type_from_pmt);
 			es->payload_size -= packet_len;
 
 			return 1;