Displaying 2 results from an estimated 2 matches for "get_picture".
2008 May 09
1
FLAC__metadata_get_picture()
Hi all!
I have a problem to get _all_ images from flac file.
I have flac file with 3 images inside ( FLAC__METADATA_TYPE_PICTURE )
How to get _all_ images with bool FLAC::Metadata::get_picture() func?
This function is wrapper FLAC__bool FLAC__metadata_get_picture().
flac-1.2.1/src/libFLAC/metadata_iterators.c:
...
285 FLAC_API FLAC__bool FLAC__metadata_get_picture(const char *filename,
FLAC__StreamMetadata **picture, FLAC__StreamMetadata_Picture_Type type,
const char *mime_type, cons...
2016 Apr 15
0
FLAC__metadata_get_picture always return false
...les.
I can get this pair ( flac.h & libFLAC8.dylib ) working fine to convert flac file to other supported audio file formats both ways. It work also fine to get Vorbis Comment and other metadata ( like "bits per sample" for instance ).
But when I use the following code, FLAC__metadata_get_picture() always return false :
FLAC__StreamMetadata *smet= NULL;
const char *filename="/[...]/musicfile.flac";
for (FLAC__StreamMetadata_Picture_Type pic_type = FLAC__STREAM_METADATA_PICTURE_TYPE_OTHER;
pic_type < FLAC__STREAM_METADATA_PICTURE_TYPE_UNDEFINED; pic_type++...