[MPlayer-cvslog] r22435 - trunk/libmpdemux/demux_avs.c
reimar
subversion at mplayerhq.hu
Sun Mar 4 12:23:11 CET 2007
Author: reimar
Date: Sun Mar 4 12:23:11 2007
New Revision: 22435
Modified:
trunk/libmpdemux/demux_avs.c
Log:
Enable aid/vid stream selection, although it is quite useless currently.
Modified: trunk/libmpdemux/demux_avs.c
==============================================================================
--- trunk/libmpdemux/demux_avs.c (original)
+++ trunk/libmpdemux/demux_avs.c Sun Mar 4 12:23:11 2007
@@ -174,7 +174,7 @@ static int demux_avs_fill_buffer(demuxer
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 @@ static int demux_avs_fill_buffer(demuxer
#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 @@ static demuxer_t* demux_open_avs(demuxer
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 @@ static demuxer_t* demux_open_avs(demuxer
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;
More information about the MPlayer-cvslog
mailing list