a/v stream selection - patch by alexander.werth@gmx.de

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6125 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-05-19 23:25:40 +00:00
parent 61a23b0d8b
commit 0bfe8fcf31
1 changed files with 4 additions and 4 deletions

View File

@ -531,23 +531,23 @@ int demux_ogg_open(demuxer_t* demuxer) {
// If the audio stream is not defined we took the first one
if(demuxer->audio->id == -1) {
demuxer->audio->id = ogg_d->num_sub;
demuxer->audio->sh = sh_a;
sh_a->ds = demuxer->audio;
// if(sh_a->wf) print_wave_header(sh_a->wf);
}
/// Is it the stream we want
if(demuxer->audio->id == ogg_d->num_sub)
demuxer->audio->sh = sh_a;
sh_a->ds = demuxer->audio;
ds = demuxer->audio;
}
if(sh_v) {
/// Also for video
if(demuxer->video->id == -1) {
demuxer->video->id = ogg_d->num_sub;
demuxer->video->sh = sh_v;
sh_v->ds = demuxer->video;
// if(sh_v->bih) print_video_header(sh_v->bih);
}
if(demuxer->video->id == ogg_d->num_sub)
demuxer->video->sh = sh_v;
sh_v->ds = demuxer->video;
ds = demuxer->video;
}
/// Add the header packets if the stream isn't seekable