mirror of https://github.com/mpv-player/mpv
segfault fix: assign param->apid (that is the audio id found) when inexistent audio language is specified; patch by Erik Auerswald auerswal a unix-ag d uni-kl d de
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18044 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2550c31309
commit
7d8d007650
|
@ -578,6 +578,7 @@ static off_t ts_detect_streams(demuxer_t *demuxer, tsdemux_init_t *param)
|
||||||
if(a52_check(pptr->buf, pptr->pos) > 2)
|
if(a52_check(pptr->buf, pptr->pos) > 2)
|
||||||
{
|
{
|
||||||
param->atype = AUDIO_A52;
|
param->atype = AUDIO_A52;
|
||||||
|
param->apid = es.pid;
|
||||||
es.type = AUDIO_A52;
|
es.type = AUDIO_A52;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue