search for: flac__metadata_type_application

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

2012 Apr 05
3
[PATCH] Fix buffer overflow in metaflac
...ertion(+), 1 deletion(-) diff --git a/src/metaflac/options.c b/src/metaflac/options.c index eb3498d..2cb0959 100644 --- a/src/metaflac/options.c +++ b/src/metaflac/options.c @@ -1040,7 +1040,7 @@ FLAC__bool parse_block_type(const char *in, Argument_BlockType *out) out->entries[entry].type = FLAC__METADATA_TYPE_APPLICATION; out->entries[entry].filter_application_by_id = (0 != r); if(0 != r) { - if(strlen(r) == 4) { + if(strlen(r) == 3) { strcpy(out->entries[entry].application_id, r); } else if(strlen(r) == 10 && strncmp(r, "0x", 2) == 0 && strspn(r+2, &quo...
2010 Apr 21
1
How do you set the Application ID value in an an Application Metadata Block?
...ata object. I am currently working around the issue by setting the value manually, but that hurts my good coding sense. (Note: I have already registered my ID.) Is there an API call to set the application metadata ID? Here's what I'm doing: myFlacMetadata = FLAC__metadata_object_new (FLAC__METADATA_TYPE_APPLICATION); FLAC__metadata_object_application_set_data (uitsFlacMetadata, myMetadata, myMetadataSize, FALSE); /* this is a BIG FAT NO NO, but I cannot for the life of me find any way in the FLAC API to set */ /* the Application block application ID, therefore I am going rogue and setting it expl...
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
2012 Apr 06
1
[PATCH] Fix buffer overflow in metaflac
...it a/src/metaflac/options.c b/src/metaflac/options.c > index eb3498d..2cb0959 100644 > --- a/src/metaflac/options.c > +++ b/src/metaflac/options.c > @@ -1040,7 +1040,7 @@ FLAC__bool parse_block_type(const char *in, Argument_BlockType *out) >? ??? ??? ??? out->entries[entry].type = FLAC__METADATA_TYPE_APPLICATION; >? ??? ??? ??? out->entries[entry].filter_application_by_id = (0 != r); >? ??? ??? ??? if(0 != r) { > -??? ??? ??? ??? if(strlen(r) == 4) { > +??? ??? ??? ??? if(strlen(r) == 3) { >? ??? ??? ??? ??? ??? strcpy(out->entries[entry].application_id, r); >? ??? ??? ??? ??? } I...
2017 Jan 19
4
[PATCH] Fix cppcheck warnings
.../src/test_libFLAC/decoders.c b/src/test_libFLAC/decoders.c index 46114f1..e9d52e9 100644 --- a/src/test_libFLAC/decoders.c +++ b/src/test_libFLAC/decoders.c @@ -282,10 +282,10 @@ static void stream_decoder_metadata_callback_(const FLAC__StreamDecoder *decoder return; if (metadata->type == FLAC__METADATA_TYPE_APPLICATION) { - printf ("%d ('%c%c%c%c')... ", dcd->current_metadata_number, metadata->data.application.id [0], metadata->data.application.id [1], metadata->data.application.id [2], metadata->data.application.id [3]); + printf ("%u ('%c%c%c%c')... ", dcd-&g...