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:
nicodvb 2006-04-05 18:50:24 +00:00
parent 2550c31309
commit 7d8d007650
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }
} }