[Flac-dev] Flac and OggFlac

Josh Coalson xflac at yahoo.com
Thu Nov 16 15:42:48 PST 2006

--- Josh Coalson <xflac at yahoo.com> wrote:
> --- Erik de Castro Lopo <erikd-flac at mega-nerd.com> wrote:
> >   2) I have registered a metadata callback function with 
> >      OggFLAC__seekable_stream_decoder_set_metadata_callback and 
> >      I'm looking at the metadata struct being passed back. When
> > 	 using regular FLAC the field:
> > 
> >         metadata->data.stream_info.total_samples
> > 
> >      is set correctly, but with OggFLAC it seems to always be 
> > 	 zero. Why?
> > 
> > Can anyone shed any light?
> normally the flac encoder goes back to fill in missing STREAMINFO
> fields after encoding is finished.  the encoder may not know
> total_samples when encoding starts; if not it has to go back and
> put it in at the end of encoding.  even when encoding to ogg flac
> as of flac-1.1.2 it should do that.  so either:
> - the ogg flac file was encoded with flac-1.1.1 or earlier
> - the ogg flac file was encoded to stdout so the writeback couldn't
>   happen (flac --ogg file.wav > file.flac)
> - there is a bug somewhere!

was going through old mail... there is a bug in 1.1.2 where this
data is not rewritten back to ogg flac for any reason (same is
true for seek points).  this has been fixed and will be in 1.1.3.


Sponsored Link

Compare mortgage rates for today. 
Get up to 5 free quotes. 

More information about the Flac-dev mailing list