From 7d8d00765081e891428cf872ccedbbbd598c6f5c Mon Sep 17 00:00:00 2001 From: nicodvb Date: Wed, 5 Apr 2006 18:50:24 +0000 Subject: [PATCH] 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 --- libmpdemux/demux_ts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmpdemux/demux_ts.c b/libmpdemux/demux_ts.c index 0a59277914..aeffd8ccd4 100644 --- a/libmpdemux/demux_ts.c +++ b/libmpdemux/demux_ts.c @@ -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) { param->atype = AUDIO_A52; + param->apid = es.pid; es.type = AUDIO_A52; } }