if (!(i&1023))
ffio_ensure_seekback(s->pb, i + 1024 + 4);
if (check(s, off + i) >= 0) {
- av_log(s, AV_LOG_INFO, "Skipping %d bytes of junk at %lld.\n", i, (long long)off);
+ av_log(s, AV_LOG_INFO, "Skipping %d bytes of junk at %"PRId64".\n", i, off);
avio_seek(s->pb, off + i, SEEK_SET);
break;
}
pkt->flags &= ~AV_PKT_FLAG_CORRUPT;
pkt->stream_index = 0;
- if (ret >= ID3v1_TAG_SIZE &&
- memcmp(&pkt->data[ret - ID3v1_TAG_SIZE], "TAG", 3) == 0)
- ret -= ID3v1_TAG_SIZE;
-
- /* note: we need to modify the packet size here to handle the last
- packet */
- pkt->size = ret;
return ret;
}