changeset 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 80324ad2b3f1
children da407ef92358
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;