Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
67270ccd
Commit
67270ccd
authored
Jan 02, 2014
by
James Darnley
Committed by
Michael Niedermayer
Jan 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/id3v2enc: update comment about minimum padding
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0de03fd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
id3v2enc.c
libavformat/id3v2enc.c
+3
-4
No files found.
libavformat/id3v2enc.c
View file @
67270ccd
...
@@ -333,11 +333,10 @@ void ff_id3v2_finish(ID3v2EncContext *id3, AVIOContext *pb,
...
@@ -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
/* 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
* 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. */
* 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
);
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
);
ffio_fill
(
pb
,
0
,
padding_bytes
);
id3
->
len
+=
padding_bytes
;
id3
->
len
+=
padding_bytes
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment