[FFmpeg-devel] [PATCH] Move ID3v1 skip from decoder to demuxer

Clément Bœsch ubitux
Fri Jan 21 23:55:31 CET 2011


On Fri, Jan 21, 2011 at 10:33:48PM +0000, M?ns Rullg?rd wrote:
> Cl?ment B?sch <ubitux at gmail.com> writes:
> 
> > +    if (ret > ID3v1_TAG_SIZE) {
> > +        uint8_t *buf = &pkt->data[ret - ID3v1_TAG_SIZE];
> > +        uint32_t v = AV_RB24(buf);
> > +        if (v == MKBETAG(0, 'T', 'A', 'G'))
> > +            ret -= ID3v1_TAG_SIZE;
> > +    }
> 
> memcmp(buf, "TAG", 3);
> 

Changed.

-- 
Cl?ment B.



More information about the ffmpeg-devel mailing list