diff options
author | James Darnley <james.darnley@gmail.com> | 2014-01-02 23:34:35 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-25 01:52:33 +0400 |
commit | 67270ccd3af97321958396d237f5a442132a9296 (patch) | |
tree | 55e964e13a19840f2e5227849db5226620bfdc25 /libavformat/id3v2enc.c | |
parent | 0de03fd6a1f1eed8ca18908fc9529b36508ac144 (diff) |
lavf/id3v2enc: update comment about minimum padding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/id3v2enc.c')
-rw-r--r-- | libavformat/id3v2enc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavformat/id3v2enc.c b/libavformat/id3v2enc.c index 8bb5392a03..4d555b3d24 100644 --- a/libavformat/id3v2enc.c +++ b/libavformat/id3v2enc.c @@ -333,11 +333,10 @@ void ff_id3v2_finish(ID3v2EncContext *id3, AVIOContext *pb, /* The ID3v2.3 specification states that 28 bits are used to represent the * size of the whole tag. Therefore the current size of the tag needs to be * subtracted from the upper limit of 2^28-1 to clip the value correctly. */ + /* The minimum of 10 is an arbitrary amount of padding at the end of the tag + * to fix cover art display with some software such as iTunes, Traktor, + * Serato, Torq. */ padding_bytes = av_clip(padding_bytes, 10, 268435455 - id3->len); - - /* adding an arbitrary amount of padding bytes at the end of the - * ID3 metadata fixes cover art display for some software (iTunes, - * Traktor, Serato, Torq) */ ffio_fill(pb, 0, padding_bytes); id3->len += padding_bytes; |