diff libmpdemux/demux_ogg.c @ 18637:94524d81d145

first vorbis packet before vorbis_synthesis_headeri() must have b_o_s==1
author nicodvb
date Wed, 07 Jun 2006 22:40:40 +0000
parents 4928dd61f136
children 495142cba779
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Wed Jun 07 22:22:45 2006 +0000
+++ b/libmpdemux/demux_ogg.c	Wed Jun 07 22:40:40 2006 +0000
@@ -802,6 +802,7 @@
       return;
     memcpy(buf[i], op[i].packet, op[i].bytes);
 
+    op[i].b_o_s = (i==0);
     ris = vorbis_synthesis_headerin(&(od->vi),&(od->vc),&(op[i]));
     if(ris < 0) {
       init_error = 1;