demux_ts: fix reading teletext language

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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35198 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2012-09-15 13:25:56 +00:00 committed by wm4
parent b7462fe2da
commit ef15c9c8ee
1 changed files with 1 additions and 1 deletions

View File

@ -2287,7 +2287,7 @@ static int parse_descriptors(struct pmt_es_t *es, uint8_t *ptr)
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;