Mercurial > mplayer.hg
changeset 35104:053d1129e569
Fix reading language from teletext descriptor when it is not
the first descriptor in the block.
author | reimar |
---|---|
date | Sat, 15 Sep 2012 13:25:56 +0000 |
parents | 5076387577f7 |
children | a0ca5aa37d71 |
files | libmpdemux/demux_ts.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c Sat Sep 15 12:55:56 2012 +0000 +++ b/libmpdemux/demux_ts.c Sat Sep 15 13:25:56 2012 +0000 @@ -2287,7 +2287,7 @@ 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;