[MPlayer-cvslog] r35198 - trunk/libmpdemux/demux_ts.c

reimar subversion at mplayerhq.hu
Sat Sep 15 15:25:56 CEST 2012


Author: reimar
Date: Sat Sep 15 15:25:56 2012
New Revision: 35198

Log:
Fix reading language from teletext descriptor when it is not
the first descriptor in the block.

Modified:
   trunk/libmpdemux/demux_ts.c

Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c	Sat Sep 15 14:55:56 2012	(r35197)
+++ trunk/libmpdemux/demux_ts.c	Sat Sep 15 15:25:56 2012	(r35198)
@@ -2287,7 +2287,7 @@ static int parse_descriptors(struct pmt_
 		else if(ptr[j] == 0x56) // Teletext
 		{
 			if(descr_len >= 5) {
-				memcpy(es->lang, ptr+2, 3);
+				memcpy(es->lang, ptr+j+2, 3);
 				es->lang[3] = 0;
 			}
 			es->type = SPU_TELETEXT;


More information about the MPlayer-cvslog mailing list