[FFmpeg-cvslog] r20839 - trunk/libavformat/id3v2.c

Michael Niedermayer michaelni
Wed Dec 16 16:59:15 CET 2009


On Mon, Dec 14, 2009 at 07:17:43PM +0100, Reimar D?ffinger wrote:
> On Mon, Dec 14, 2009 at 05:32:58PM +0100, Michael Niedermayer wrote:
> > On Mon, Dec 14, 2009 at 07:03:13PM +0530, Jai Menon wrote:
> > > On Mon, Dec 14, 2009 at 12:23:39PM +0100, Michael Niedermayer wrote:
> > > > On Mon, Dec 14, 2009 at 07:54:49AM +0100, Reimar D?ffinger wrote:
> > > > > On Mon, Dec 14, 2009 at 02:53:48AM +0100, Michael Niedermayer wrote:
> > > > > > whats left currently is: (note i manually edited the diff so i cant gurantee
> > > > > > that the stat is completely correctly, iam not sure how good diffstat is at
> > > > > > manually edited diffs)
> > > > > 
> > > > > Can you just dump that diff somewhere? I think the gxf and s302m stuff is "mine",
> > > > > though I expect I might lack samples for them.
> > > > 
> > > > attached, but keep in mind these are my work in progress diffs they are
> > > > hand edited with hunks and lines removed that where merged or that i
> > > > considered not worth the work merging (too much work / bikeshed / things
> > > > appearing incomplete or buggy). Its possible i also removed changes by
> > > > mistake from them!
> > > 
> > > [...]
> > > 
> > > > +/**
> > > > + * Used attributes: "language", "mime"
> > > > + */
> > > > +typedef struct {
> > > > +    char *key;
> > > > +    char *value;
> > > > +} AVMetadataAttribute;
> > > > +
> > > > +typedef struct {
> > > > +    unsigned count;
> > > > +    AVMetadataAttribute *elems;
> > > > +} AVMetadataAttributes;
> > > > +
> > > > +enum AVMetadataType {
> > > > +    METADATA_STRING, ///< UTF-8
> > > > +    METADATA_INT,
> > > > +    METADATA_DOUBLE,
> > > > +    METADATA_BYTEARRAY,
> > > > +};
> > > 
> > > BTW, is there any possibility of the above metadata type being
> > > considered? I'm asking this with reference to cover art export.
> > 
> > binary data will be considered once someone explains what the problem with
> > CODEC_TYPE_ATTACHMENT is.
> > 
> > about number vs. string
> > the metadata doesnt need to store number/string its just a recipe
> > for ending with inconsistant information. If something can be parsed as
> > number it is a number if not its not.
> > and strings are utf-8/unicode always, if not the demuxer has to do
> > whatever convertion is needed
> > 
> > Comments welcome, bikeshed not
> 
> I do not know a way to find out what encoding it uses for RealMedia files,
> what is your suggestion/recommended approach with that?

i have none, but is that related to the discussion at hand?
i mean if you know the encoding it can be converted, if you dont it
cant te API needs UTF-8 either way

we could add a default_encoding to let the user specify the input encoding
where it is not specified.

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20091216/ce8e6dc9/attachment.pgp>



More information about the ffmpeg-cvslog mailing list