mirror of
https://github.com/mpv-player/mpv
synced 2024-10-22 08:51:57 +02:00
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:
parent
b7462fe2da
commit
ef15c9c8ee
@ -2287,7 +2287,7 @@ static int parse_descriptors(struct pmt_es_t *es, uint8_t *ptr)
|
|||||||
else if(ptr[j] == 0x56) // Teletext
|
else if(ptr[j] == 0x56) // Teletext
|
||||||
{
|
{
|
||||||
if(descr_len >= 5) {
|
if(descr_len >= 5) {
|
||||||
memcpy(es->lang, ptr+2, 3);
|
memcpy(es->lang, ptr+j+2, 3);
|
||||||
es->lang[3] = 0;
|
es->lang[3] = 0;
|
||||||
}
|
}
|
||||||
es->type = SPU_TELETEXT;
|
es->type = SPU_TELETEXT;
|
||||||
|
Loading…
Reference in New Issue
Block a user