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
591be9e3
Commit
591be9e3
authored
Jan 16, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/aadec: use avio_get_str()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
e0665d38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
aadec.c
libavformat/aadec.c
+2
-10
No files found.
libavformat/aadec.c
View file @
591be9e3
...
...
@@ -102,16 +102,8 @@ static int aa_read_header(AVFormatContext *s)
avio_skip
(
pb
,
1
);
// unidentified integer
nkey
=
avio_rb32
(
pb
);
// key string length
nval
=
avio_rb32
(
pb
);
// value string length
if
(
nkey
>
sizeof
(
key
))
{
avio_skip
(
pb
,
nkey
);
}
else
{
avio_read
(
pb
,
key
,
nkey
);
// key string
}
if
(
nval
>
sizeof
(
val
))
{
avio_skip
(
pb
,
nval
);
}
else
{
avio_read
(
pb
,
val
,
nval
);
// value string
}
avio_get_str
(
pb
,
nkey
,
key
,
sizeof
(
key
));
avio_get_str
(
pb
,
nval
,
val
,
sizeof
(
val
));
if
(
!
strcmp
(
key
,
"codec"
))
{
av_log
(
s
,
AV_LOG_DEBUG
,
"Codec is <%s>
\n
"
,
val
);
strncpy
(
codec_name
,
val
,
sizeof
(
codec_name
)
-
1
);
...
...
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