[FFmpeg-devel] [PATCH] Add writing of vorbis comments to flac files

James Darnley james.darnley
Fri Mar 12 14:19:54 CET 2010


On 12 March 2010 13:44, Aurelien Jacobs <aurel at gnuage.org> wrote:
> You are not allowed to access to the content of AVMetadata *m by
> yourself. You must not use anything else than what's described in
> Public Metadata API (avformat.h).
> Basically you should use av_metadata_get() to iterate over all the
> elements.
> Something like this should do the trick:
>
> ?AVMetadataTag *t = NULL;
> ?while ((t = av_metadata_get(m, "", t, AV_METADATA_IGNORE_SUFFIX))) {
> ? ? /* do wathever you want with 't' */
> ?}
>
> Aurel

Ew.  Why isn't there a cleaner method for getting the next tag?



More information about the ffmpeg-devel mailing list