Revision 204a1815 libavformat/mp3dec.c

View differences:

libavformat/mp3dec.c
174 174
    if (ret <= 0) {
175 175
        return AVERROR(EIO);
176 176
    }
177

  
178
    if (ret > ID3v1_TAG_SIZE &&
179
        memcmp(&pkt->data[ret - ID3v1_TAG_SIZE], "TAG", 3) == 0)
180
        ret -= ID3v1_TAG_SIZE;
181

  
177 182
    /* note: we need to modify the packet size here to handle the last
178 183
       packet */
179 184
    pkt->size = ret;

Also available in: Unified diff