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

Måns Rullgård mans
Fri Jan 21 23:33:48 CET 2011


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);

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list