[FFmpeg-cvslog] r18460 - trunk/libavformat/flvdec.c

Michael Niedermayer michaelni
Sun Apr 12 13:20:14 CEST 2009


On Sat, Apr 11, 2009 at 09:45:00PM -0700, Baptiste Coudurier wrote:
> On Sun, Apr 12, 2009 at 06:16:11AM +0200, Michael Niedermayer wrote:
> > On Sat, Apr 11, 2009 at 09:06:19PM -0700, Baptiste Coudurier wrote:
> > > On Sun, Apr 12, 2009 at 06:01:03AM +0200, michael wrote:
> > > > Author: michael
> > > > Date: Sun Apr 12 06:01:03 2009
> > > > New Revision: 18460
> > > > 
> > > > Log:
> > > > Disable metadata reading, yes id like to know what this code is good for
> > > > and this is the easiest way to. It would be alot of messy code we can drop
> > > > if it is useless.
> > > > As a sideeffect this fixes issue977.
> > > > 
> > > > Modified:
> > > >    trunk/libavformat/flvdec.c
> > > > 
> > > > Modified: trunk/libavformat/flvdec.c
> > > > ==============================================================================
> > > > --- trunk/libavformat/flvdec.c	Sun Apr 12 05:26:20 2009	(r18459)
> > > > +++ trunk/libavformat/flvdec.c	Sun Apr 12 06:01:03 2009	(r18460)
> > > > @@ -342,7 +342,7 @@ static int flv_read_packet(AVFormatConte
> > > >          if ((flags & 0xf0) == 0x50) /* video info / command frame */
> > > >              goto skip;
> > > >      } else {
> > > > -        if (type == FLV_TAG_TYPE_META && size > 13+1+4)
> > > > +        if (type == FLV_TAG_TYPE_META && size > 13+1+4 && 0)
> > > >              flv_read_metabody(s, next);
> > > >          else /* skip packet */
> > > >              av_log(s, AV_LOG_ERROR, "skipping flv packet: type %d, size %d, flags %d\n", type, size, flags);
> > > 
> > > Humm, but you don't plan to export this in AVMetadata ?
> > 
> > audiosamplerate, audiocodecid, ... ?
> > no, thats no metadata in the AVMetadata sense
> 
> Since this is metadata since Adobe declare it as metadata, in what
> sense is it metadata, should we introduce AVAdobeMetadata ? ;)
> 
> Besides I'd like to have access to this information, how can I ?

AVCodecContext.sample_rate and codec_id


> 
> Also, a list of keyframes is stored here using a tag flash player
> understand which allow seeking before having downloaded the whole
> file.

I prefer if we dont reproduce the limitations of flash player and allow
seeking without that table


> 
> This is definitely something it would be nice to have.

maybe the table can be usefull to speed up seeking, but until that is
implemented i see no point in the current metadata code

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
-------------- 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/20090412/e5e8b45a/attachment.pgp>



More information about the ffmpeg-cvslog mailing list