Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stefan Strogin
flac
Commits
43d8f85f
Commit
43d8f85f
authored
Dec 31, 2003
by
Josh Coalson
Browse files
minor comments
parent
575c1711
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libOggFLAC/ogg_encoder_aspect.c
View file @
43d8f85f
...
...
@@ -94,8 +94,9 @@ FLAC__StreamEncoderWriteStatus OggFLAC__ogg_encoder_aspect_write_callback_wrappe
if
(
ogg_stream_packetin
(
&
aspect
->
stream_state
,
&
packet
)
!=
0
)
return
FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR
;
/*@@@@@@ can't figure out a way to pass a useful number for 'samples' to the write_callback, so we'll just pass 0 */
#ifdef FLAC__ONE_FLAC_FRAME_PER_OGG_PAGE
/* WATCHOUT: a FLAC frame may not be able to fit in a single Ogg page */
/* WATCHOUT: a FLAC frame
still
may not be able to fit in a single Ogg page */
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
)
return
FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment