<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>Patch -- Decode Position for libFLAC++ file and seekable_stream decoder</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Index: src/libFLAC++/file_decoder.cpp</FONT>

<BR><FONT SIZE=2 FACE="Arial">===================================================================</FONT>

<BR><FONT SIZE=2 FACE="Arial">RCS file: /cvsroot/flac/flac/src/libFLAC++/file_decoder.cpp,v</FONT>

<BR><FONT SIZE=2 FACE="Arial">retrieving revision 1.9</FONT>

<BR><FONT SIZE=2 FACE="Arial">diff -u -r1.9 file_decoder.cpp</FONT>

<BR><FONT SIZE=2 FACE="Arial">--- src/libFLAC++/file_decoder.cpp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 25 Jan 2005 04:18:35 -0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.9</FONT>

<BR><FONT SIZE=2 FACE="Arial">+++ src/libFLAC++/file_decoder.cpp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 20 Mar 2006 05:53:19 -0000</FONT>

<BR><FONT SIZE=2 FACE="Arial">@@ -159,6 +159,12 @@</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ::FLAC__file_decoder_get_blocksize(decoder_);</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool </FONT><A HREF="File::get_decode_position(FLAC__uint64"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">File::get_decode_position(FLAC__uint64</FONT></U></A><FONT SIZE=2 FACE="Arial"> *position) const</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FLAC__ASSERT(is_valid());</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (bool)::FLAC__file_decoder_get_decode_position(decoder_, position);</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT>

<BR><FONT SIZE=2 FACE="Arial">+</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT><A HREF="File::State"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">File::State</FONT></U></A><FONT SIZE=2 FACE="Arial"> </FONT><A HREF="File::init()"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">File::init()</FONT></U></A>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FLAC__ASSERT(0 != decoder_);</FONT>

<BR><FONT SIZE=2 FACE="Arial">Index: src/libFLAC++/seekable_stream_decoder.cpp</FONT>

<BR><FONT SIZE=2 FACE="Arial">===================================================================</FONT>

<BR><FONT SIZE=2 FACE="Arial">RCS file: /cvsroot/flac/flac/src/libFLAC++/seekable_stream_decoder.cpp,v</FONT>

<BR><FONT SIZE=2 FACE="Arial">retrieving revision 1.9</FONT>

<BR><FONT SIZE=2 FACE="Arial">diff -u -r1.9 seekable_stream_decoder.cpp</FONT>

<BR><FONT SIZE=2 FACE="Arial">--- src/libFLAC++/seekable_stream_decoder.cpp&nbsp;&nbsp; 25 Jan 2005 04:18:35 -0000&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.9</FONT>

<BR><FONT SIZE=2 FACE="Arial">+++ src/libFLAC++/seekable_stream_decoder.cpp&nbsp;&nbsp; 20 Mar 2006 05:54:52 -0000</FONT>

<BR><FONT SIZE=2 FACE="Arial">@@ -147,6 +147,12 @@</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return ::FLAC__seekable_stream_decoder_get_blocksize(decoder_);</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bool SeekableStream::get_decode_position(FLAC__uint64 *position) const</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FLAC__ASSERT(is_valid());</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (bool)::FLAC__seekable_stream_decoder_get_decode_position(decoder_, position);</FONT>

<BR><FONT SIZE=2 FACE="Arial">+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT>

<BR><FONT SIZE=2 FACE="Arial">+</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SeekableStream::State SeekableStream::init()</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FLAC__ASSERT(is_valid());</FONT>
</P>

</BODY>
</HTML>