Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
c1998177
Commit
c1998177
authored
Feb 27, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
id3v2enc: make id3v2_put_size take only an AVIOContext.
It has no need of full AVFormatContext.
parent
393fd0d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
id3v2enc.c
libavformat/id3v2enc.c
+7
-7
No files found.
libavformat/id3v2enc.c
View file @
c1998177
...
...
@@ -26,12 +26,12 @@
#include "avio.h"
#include "id3v2.h"
static
void
id3v2_put_size
(
AV
FormatContext
*
s
,
int
size
)
static
void
id3v2_put_size
(
AV
IOContext
*
pb
,
int
size
)
{
avio_w8
(
s
->
pb
,
size
>>
21
&
0x7f
);
avio_w8
(
s
->
pb
,
size
>>
14
&
0x7f
);
avio_w8
(
s
->
pb
,
size
>>
7
&
0x7f
);
avio_w8
(
s
->
pb
,
size
&
0x7f
);
avio_w8
(
pb
,
size
>>
21
&
0x7f
);
avio_w8
(
pb
,
size
>>
14
&
0x7f
);
avio_w8
(
pb
,
size
>>
7
&
0x7f
);
avio_w8
(
pb
,
size
&
0x7f
);
}
static
int
string_is_ascii
(
const
uint8_t
*
str
)
...
...
@@ -74,7 +74,7 @@ static int id3v2_put_ttag(AVFormatContext *s, const char *str1, const char *str2
len
=
avio_close_dyn_buf
(
dyn_buf
,
&
pb
);
avio_wb32
(
s
->
pb
,
tag
);
id3v2_put_size
(
s
,
len
);
id3v2_put_size
(
s
->
pb
,
len
);
avio_wb16
(
s
->
pb
,
0
);
avio_write
(
s
->
pb
,
pb
,
len
);
...
...
@@ -140,7 +140,7 @@ int ff_id3v2_write(struct AVFormatContext *s, int id3v2_version,
cur_pos
=
avio_tell
(
s
->
pb
);
avio_seek
(
s
->
pb
,
size_pos
,
SEEK_SET
);
id3v2_put_size
(
s
,
totlen
);
id3v2_put_size
(
s
->
pb
,
totlen
);
avio_seek
(
s
->
pb
,
cur_pos
,
SEEK_SET
);
return
0
;
}
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