Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
18636:80324ad2b3f1 | 18637:94524d81d145 |
---|---|
800 buf[i] = malloc(op[i].bytes); | 800 buf[i] = malloc(op[i].bytes); |
801 if(!buf[i]) | 801 if(!buf[i]) |
802 return; | 802 return; |
803 memcpy(buf[i], op[i].packet, op[i].bytes); | 803 memcpy(buf[i], op[i].packet, op[i].bytes); |
804 | 804 |
805 op[i].b_o_s = (i==0); | |
805 ris = vorbis_synthesis_headerin(&(od->vi),&(od->vc),&(op[i])); | 806 ris = vorbis_synthesis_headerin(&(od->vi),&(od->vc),&(op[i])); |
806 if(ris < 0) { | 807 if(ris < 0) { |
807 init_error = 1; | 808 init_error = 1; |
808 mp_msg(MSGT_DECAUDIO,MSGL_ERR,"DEMUX_OGG: header n. %d broken! len=%ld, code: %d\n", i, op[i].bytes, ris); | 809 mp_msg(MSGT_DECAUDIO,MSGL_ERR,"DEMUX_OGG: header n. %d broken! len=%ld, code: %d\n", i, op[i].bytes, ris); |
809 } | 810 } |