Mercurial > mplayer.hg
comparison libmpdemux/demux_ogg.c @ 6156:f961a25a9257
10L bugfix
author | albeu |
---|---|
date | Thu, 23 May 2002 09:47:18 +0000 |
parents | 12b1f920c1f4 |
children | 5abb9367b128 |
comparison
equal
deleted
inserted
replaced
6155:ce81fb6e3309 | 6156:f961a25a9257 |
---|---|
532 if(demuxer->audio->id == -1) { | 532 if(demuxer->audio->id == -1) { |
533 demuxer->audio->id = ogg_d->num_sub; | 533 demuxer->audio->id = ogg_d->num_sub; |
534 // if(sh_a->wf) print_wave_header(sh_a->wf); | 534 // if(sh_a->wf) print_wave_header(sh_a->wf); |
535 } | 535 } |
536 /// Is it the stream we want | 536 /// Is it the stream we want |
537 if(demuxer->audio->id == ogg_d->num_sub) | 537 if(demuxer->audio->id == ogg_d->num_sub) { |
538 demuxer->audio->sh = sh_a; | 538 demuxer->audio->sh = sh_a; |
539 sh_a->ds = demuxer->audio; | 539 sh_a->ds = demuxer->audio; |
540 ds = demuxer->audio; | 540 ds = demuxer->audio; |
541 } | |
541 } | 542 } |
542 if(sh_v) { | 543 if(sh_v) { |
543 /// Also for video | 544 /// Also for video |
544 if(demuxer->video->id == -1) { | 545 if(demuxer->video->id == -1) { |
545 demuxer->video->id = ogg_d->num_sub; | 546 demuxer->video->id = ogg_d->num_sub; |
546 // if(sh_v->bih) print_video_header(sh_v->bih); | 547 // if(sh_v->bih) print_video_header(sh_v->bih); |
547 } | 548 } |
548 if(demuxer->video->id == ogg_d->num_sub) | 549 if(demuxer->video->id == ogg_d->num_sub) { |
549 demuxer->video->sh = sh_v; | 550 demuxer->video->sh = sh_v; |
550 sh_v->ds = demuxer->video; | 551 sh_v->ds = demuxer->video; |
551 ds = demuxer->video; | 552 ds = demuxer->video; |
553 } | |
552 } | 554 } |
553 /// Add the header packets if the stream isn't seekable | 555 /// Add the header packets if the stream isn't seekable |
554 if(ds && (!s->end_pos || index_mode != 2)) { | 556 if(ds && (!s->end_pos || index_mode != 2)) { |
555 /// Finish the page, otherwise packets will be lost | 557 /// Finish the page, otherwise packets will be lost |
556 do { | 558 do { |