diff options
-rw-r--r-- | libmpdemux/demux_ogg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpdemux/demux_ogg.c b/libmpdemux/demux_ogg.c index 85eb9f1af8..59d467c22e 100644 --- a/libmpdemux/demux_ogg.c +++ b/libmpdemux/demux_ogg.c @@ -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 |