Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
929e5159
Commit
929e5159
authored
Jan 08, 2020
by
Gilles Bouthenot
Committed by
Paul B Mahol
Jan 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/id3v2enc: fix bad ID3v2 tag length
parent
3d894db7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
id3v2enc.c
libavformat/id3v2enc.c
+3
-3
No files found.
libavformat/id3v2enc.c
View file @
929e5159
...
...
@@ -268,15 +268,15 @@ static int write_ctoc(AVFormatContext *s, ID3v2EncContext *id3, int enc)
if
((
ret
=
avio_open_dyn_buf
(
&
dyn_bc
))
<
0
)
return
ret
;
id3
->
len
+=
avio_put_str
(
dyn_bc
,
"toc"
);
avio_put_str
(
dyn_bc
,
"toc"
);
avio_w8
(
dyn_bc
,
0x03
);
avio_w8
(
dyn_bc
,
s
->
nb_chapters
);
for
(
int
i
=
0
;
i
<
s
->
nb_chapters
;
i
++
)
{
snprintf
(
name
,
122
,
"ch%d"
,
i
);
id3
->
len
+=
avio_put_str
(
dyn_bc
,
name
);
avio_put_str
(
dyn_bc
,
name
);
}
len
=
avio_get_dyn_buf
(
dyn_bc
,
&
dyn_buf
);
id3
->
len
+=
16
+
ID3v2_HEADER_SIZE
;
id3
->
len
+=
len
+
ID3v2_HEADER_SIZE
;
avio_wb32
(
s
->
pb
,
MKBETAG
(
'C'
,
'T'
,
'O'
,
'C'
));
avio_wb32
(
s
->
pb
,
len
);
...
...
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