[PATCH] Re: [Flac-dev] Strangeness with OggFlac files

Erik de Castro Lopo erikd-flac at mega-nerd.com
Fri Nov 3 22:24:41 PST 2006


Erik de Castro Lopo wrote:

> Josh et al,
> 
> I've been tracking down a problem with generating OggFlac files.

<snip>

> I have looked into this and suspect that the FLAC__stream_encoder_finish()
> function needs to finish off the stream using a call to ogg_stream_flush()
> instead of the standard function ogg_stream_pageout().

I bashed on this a bit further and came up with the following patch:

    http://www.mega-nerd.com/tmp/flac-end_of_stream.diff

There's probably a more tasteful way of acheiving the same result, but
this version does fix the problem.

Cheers,
Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"Capitalism is an art form, an Apollonian fabrication to rival nature.
It is hypocritical for feminists and intellectuals to enjoy the pleasures
and conveniences of capitalism while sneering at it. Everyone born into
capitalism has incurred a debt to it."
-- Camille Paglia


More information about the Flac-dev mailing list