search for: flac__stream_decoder_abort

Displaying 8 results from an estimated 8 matches for "flac__stream_decoder_abort".

2004 Sep 10
2
about libFLAC
...at don't make a whole frame, and then use FLAC__stream_decoder_process_remaining_frames() to process all remaining messages, again not processing any data that don't make a whole frame, except for the last message. For doing that, a possible solution could be permit the decoder in the state FLAC__STREAM_DECODER_ABORTED to respond FLAC__stream_decoder_process_remaining_frames() like the state FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC. The new code in FLAC__stream_decoder_process_remaining_frames() would be: ... while(1) { switch(decoder->protected->state) { case FLAC__STREAM_DECODER_ABORTED: case...
2004 Sep 10
0
about libFLAC
...d then use > FLAC__stream_decoder_process_remaining_frames() to process all > remaining > messages, again not processing any data that don't make a whole > frame, > except for the last message. For doing that, a possible solution > could be > permit the decoder in the state FLAC__STREAM_DECODER_ABORTED to > respond > FLAC__stream_decoder_process_remaining_frames() like the state > FLAC__STREAM_DECODER_SEARCH_FOR_FRAME_SYNC. The new code in > FLAC__stream_decoder_process_remaining_frames() would be: > ... > while(1) { > switch(decoder->protected->state) { > ca...
2016 Jul 10
1
[PATCH] set decoding status if write callback failed.
...essage: test.flac: ERROR while decoding data state = FLAC__STREAM_DECODER_READ_FRAME As you can see, decoder state isn't quite correct. One of the ways to fix this is in the attached patch. After the patch flac writes: test.flac: ERROR while decoding data state = FLAC__STREAM_DECODER_ABORTED which is more logical. -------------- next part -------------- A non-text attachment was scrubbed... Name: set_decoding_status.patch Type: application/octet-stream Size: 1333 bytes Desc: not available URL: <http://lists.xiph.org/pipermail/flac-dev/attachments/20160710/ce29070d/attachment.obj&...
2006 Jul 24
3
Problem with CRAM and flac-1.1.2
...rocess_single() the error callback is triggered with the error FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER (the error callback is from line 1806 of stream_decoder.c in read_frame_). One thing I noticed is that FLAC__stream_decoder_process_single() still returns TRUE when our read callback returns FLAC__STREAM_DECODER_ABORTED (this was previously causing an endless loop in CRAM, since it didn't detect that an error had occurred). This behavior doesn't seem quite right and is contrary to what is described in the API docs (says the only error which returns TRUE is FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC)....
2007 Jul 14
2
FLAC__stream_decoder_process_single and FLAC__STREAM_DECODER_END_OF_STREAM
...0 @@ -1060,6 +1060,7 @@ return true; /* above function sets the status for us */ break; case FLAC__STREAM_DECODER_END_OF_STREAM: + return false; case FLAC__STREAM_DECODER_ABORTED: return true; default: ------------------8<------------------8<------------------8<------------------ -- ----------------------------------------------------------------- Erik de Castro Lopo --------------------------------------...
2006 Jul 25
0
Re: Problem with CRAM and flac-1.1.2
...callback is > triggered with the error FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER > (the error callback is from line 1806 of stream_decoder.c in > read_frame_). One thing I noticed is that > FLAC__stream_decoder_process_single() still returns TRUE when our read > callback returns FLAC__STREAM_DECODER_ABORTED (this was previously > causing an endless loop in CRAM, since it didn't detect that an error > had occurred). This behavior doesn't seem quite right and is contrary > to what is described in the API docs (says the only error which returns > TRUE is FLAC__STREAM_DECODER_ERROR_...
2006 Nov 16
2
Re: Problem with CRAM and flac-1.1.2
...th the error > FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER > > (the error callback is from line 1806 of stream_decoder.c in > > read_frame_). One thing I noticed is that > > FLAC__stream_decoder_process_single() still returns TRUE when our > read > > callback returns FLAC__STREAM_DECODER_ABORTED (this was previously > > causing an endless loop in CRAM, since it didn't detect that an > error > > had occurred). This behavior doesn't seem quite right and is > contrary > > to what is described in the API docs (says the only error which > returns > >...
2006 May 11
2
C++ Set_Metadata Problem
I refer to a problem that appeared on the flac list last August that was either solved off-list or abandoned. (http://lists.xiph.org/pipermail/flac/2005-August/000468.html) The problem is with using the C++ encoder classes, particularly the FLAC::Encoder::File:set_metadata function. JC said that the developers version of how to add a simple metadata block looked right, but it did not work for