Mercurial > mplayer.hg
changeset 22417:0d507228e65b
Enable aid/vid stream selection, although it is quite useless currently.
author | reimar |
---|---|
date | Sun, 04 Mar 2007 11:23:11 +0000 |
parents | 02783a09e1b3 |
children | 677ea3e3c75a |
files | libmpdemux/demux_avs.c |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_avs.c Sun Mar 04 10:39:02 2007 +0000 +++ b/libmpdemux/demux_avs.c Sun Mar 04 11:23:11 2007 +0000 @@ -174,7 +174,7 @@ demux_stream_t *d_video=demuxer->video; sh_video_t *sh_video=d_video->sh; - if (avs_has_video(AVS->video_info)) + if (ds == demuxer->video) { char *dst; int w, h; @@ -211,10 +211,9 @@ #ifdef ENABLE_AUDIO /* Audio */ - if (avs_has_audio(AVS->video_info)) + if (ds == demuxer->audio) { - demux_stream_t *d_audio=demuxer->audio; - sh_audio_t *sh_audio=d_audio->sh; + sh_audio_t *sh_audio = ds->sh; int l = sh_audio->wf->nAvgBytesPerSec; dp = new_demux_packet(l); @@ -286,6 +285,8 @@ sh_video_t *sh_video = new_sh_video(demuxer, 0); found = 1; + if (demuxer->video->id == -1) demuxer->video->id = 0; + if (demuxer->video->id == 0) demuxer->video->sh = sh_video; sh_video->ds = demuxer->video; @@ -316,6 +317,8 @@ found = 1; mp_msg(MSGT_DEMUX, MSGL_V, "AVS: Clip has audio -> Channels = %d - Freq = %d\n", AVS->video_info->nchannels, AVS->video_info->audio_samples_per_second); + if (demuxer->audio->id == -1) demuxer->audio->id = 0; + if (demuxer->audio->id == 0) demuxer->audio->sh = sh_audio; sh_audio->ds = demuxer->audio;