[FFmpeg-devel] [PATCH] mpc: read id3v1 tags.

Anton Khirnov anton
Thu Dec 2 11:02:28 CET 2010


On Thu, Dec 02, 2010 at 10:29:52AM +0200, Kostya wrote:
> On Thu, Dec 02, 2010 at 08:28:27AM +0100, Anton Khirnov wrote:
> > ---
> >  libavformat/mpc.c |    3 +++
> >  1 files changed, 3 insertions(+), 0 deletions(-)
> > 
> > diff --git a/libavformat/mpc.c b/libavformat/mpc.c
> > index 084f797..ecc9809 100644
> > --- a/libavformat/mpc.c
> > +++ b/libavformat/mpc.c
> > @@ -22,6 +22,7 @@
> >  #include "libavcodec/get_bits.h"
> >  #include "avformat.h"
> >  #include "apetag.h"
> > +#include "id3v1.h"
> >  
> >  #define MPC_FRAMESIZE  1152
> >  #define DELAY_FRAMES   32
> > @@ -95,6 +96,8 @@ static int mpc_read_header(AVFormatContext *s, AVFormatParameters *ap)
> >      if (!url_is_streamed(s->pb)) {
> >          int64_t pos = url_ftell(s->pb);
> >          ff_ape_parse_tag(s);
> > +        if (!av_metadata_get(s->metadata, "", NULL, AV_METADATA_IGNORE_SUFFIX))
> > +            ff_id3v1_read(s);
> >          url_fseek(s->pb, pos, SEEK_SET);
> >      }
> >  
>  
> lgtm
applied

-- 
Anton Khirnov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101202/9fbd5d6a/attachment.pgp>



More information about the ffmpeg-devel mailing list