search for: flac__stream_encoder_set_metadata

Displaying 5 results from an estimated 5 matches for "flac__stream_encoder_set_metadata".

2006 Dec 23
1
Bug in FLAC++ Stream::set_metadata()
I've found what looks like a bug in FLAC++ inside the Stream::set_metadata() method. It appears that the contained calls to FLAC__stream_encoder_set_metadata() are being passed arguments that point to local stack data (specifically the 'm' parameter which is a table that points to metadata objects). The code inside FLAC__stream_encoder_set_metadata() does nothing but store the given args ('m' and 'num_blocks'). When Stream::s...
2016 Nov 24
0
Creating a SEEKTABLE block during encoding
...g something. I changed the section where the meta data is added to the encoder to add a seek table block. (metadata[2] = FLAC__metadata_object_new(FLAC__METADATA_TYPE_SEEKTABLE)) == NULL || !FLAC__metadata_object_seektable_template_append_placeholders(metadata[2],16) || ... ok = FLAC__stream_encoder_set_metadata(encoder, metadata, 3); I don't really understand the details of the seek table but my thinking here is that I am giving the encoder a template to populate up to 16 seek points. The documentation says the encoder will modify the seek table block during encoding but the passed meta block (which...
2005 Aug 01
1
Application Metadata
Hi, I'm sorry to say that I've found the libFLAC++ interface and documentation pretty slim and baffling. What I need to do is add some application-specific metadata to a FLAC file (i'm using the FLAC++ fileencoder). It is currently just a string of characters, which doesn't need to be null-terminated. I've looked through the docs, i've looked through the tests, and
2008 May 19
1
Memory leaks due to Metadata object vorbis comment API ???
...t; entry, /*copy=*/true); > ok &= > FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair(&entry, > "DATE", FLAC_tagYear); > ok &= FLAC__metadata_object_vorbiscomment_append_comment(metadata[1], > entry, /*copy=*/true); > #endif > if (!FLAC__stream_encoder_set_metadata(encoder, metadata, 2)) > return FLAC__STREAM_ENCODER_CLIENT_ERROR; > > /* initialize encoder */ > if(ok) { > init_status = FLAC__stream_encoder_init_file(encoder, argv[2], > progress_callback, /*client_data=*/NULL); > if(init_status != FLAC__STRE...
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