minor comments

This commit is contained in:
Josh Coalson
2003-12-30 03:29:58 +00:00
parent 182e4e6f8a
commit 0bc2c32814
2 changed files with 3 additions and 1 deletions

View File

@@ -334,7 +334,8 @@ typedef struct {
* to the callback, it contains the maximum number * to the callback, it contains the maximum number
* of bytes that may be stored in \a buffer. The * of bytes that may be stored in \a buffer. The
* callee must set it to the actual number of bytes * callee must set it to the actual number of bytes
* stored before returning. * stored (0 in case of error or end-of-stream) before
* returning.
* \param client_data The callee's client data set through * \param client_data The callee's client data set through
* FLAC__stream_decoder_set_client_data(). * FLAC__stream_decoder_set_client_data().
* \retval FLAC__StreamDecoderReadStatus * \retval FLAC__StreamDecoderReadStatus

View File

@@ -95,6 +95,7 @@ FLAC__StreamEncoderWriteStatus OggFLAC__ogg_encoder_aspect_write_callback_wrappe
return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR; return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;
#ifdef FLAC__ONE_FLAC_FRAME_PER_OGG_PAGE #ifdef FLAC__ONE_FLAC_FRAME_PER_OGG_PAGE
/* WATCHOUT: a FLAC frame may not be able to fit in a single Ogg page */
while(ogg_stream_flush(&aspect->stream_state, &aspect->page) != 0) { while(ogg_stream_flush(&aspect->stream_state, &aspect->page) != 0) {
if(write_callback(encoder, aspect->page.header, aspect->page.header_len, 0, current_frame, client_data) != FLAC__STREAM_ENCODER_WRITE_STATUS_OK) if(write_callback(encoder, aspect->page.header, aspect->page.header_len, 0, current_frame, client_data) != FLAC__STREAM_ENCODER_WRITE_STATUS_OK)
return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR; return FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR;