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
e0665d38
Commit
e0665d38
authored
Jan 16, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/aadec: stop ignoring file metadata
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
40cf9437
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
aadec.c
libavformat/aadec.c
+5
-4
No files found.
libavformat/aadec.c
View file @
e0665d38
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "avformat.h"
#include "avformat.h"
#include "internal.h"
#include "internal.h"
#include "libavutil/dict.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/tea.h"
#include "libavutil/tea.h"
#include "libavutil/opt.h"
#include "libavutil/opt.h"
...
@@ -114,12 +115,10 @@ static int aa_read_header(AVFormatContext *s)
...
@@ -114,12 +115,10 @@ static int aa_read_header(AVFormatContext *s)
if
(
!
strcmp
(
key
,
"codec"
))
{
if
(
!
strcmp
(
key
,
"codec"
))
{
av_log
(
s
,
AV_LOG_DEBUG
,
"Codec is <%s>
\n
"
,
val
);
av_log
(
s
,
AV_LOG_DEBUG
,
"Codec is <%s>
\n
"
,
val
);
strncpy
(
codec_name
,
val
,
sizeof
(
codec_name
)
-
1
);
strncpy
(
codec_name
,
val
,
sizeof
(
codec_name
)
-
1
);
}
}
else
if
(
!
strcmp
(
key
,
"HeaderSeed"
))
{
if
(
!
strcmp
(
key
,
"HeaderSeed"
))
{
av_log
(
s
,
AV_LOG_DEBUG
,
"HeaderSeed is <%s>
\n
"
,
val
);
av_log
(
s
,
AV_LOG_DEBUG
,
"HeaderSeed is <%s>
\n
"
,
val
);
header_seed
=
atoi
(
val
);
header_seed
=
atoi
(
val
);
}
}
else
if
(
!
strcmp
(
key
,
"HeaderKey"
))
{
// this looks like "1234567890 1234567890 1234567890 1234567890"
if
(
!
strcmp
(
key
,
"HeaderKey"
))
{
// this looks like "1234567890 1234567890 1234567890 1234567890"
av_log
(
s
,
AV_LOG_DEBUG
,
"HeaderKey is <%s>
\n
"
,
val
);
av_log
(
s
,
AV_LOG_DEBUG
,
"HeaderKey is <%s>
\n
"
,
val
);
sscanf
(
val
,
"%u%u%u%u"
,
&
header_key_part
[
0
],
&
header_key_part
[
1
],
&
header_key_part
[
2
],
&
header_key_part
[
3
]);
sscanf
(
val
,
"%u%u%u%u"
,
&
header_key_part
[
0
],
&
header_key_part
[
1
],
&
header_key_part
[
2
],
&
header_key_part
[
3
]);
for
(
idx
=
0
;
idx
<
4
;
idx
++
)
{
for
(
idx
=
0
;
idx
<
4
;
idx
++
)
{
...
@@ -129,6 +128,8 @@ static int aa_read_header(AVFormatContext *s)
...
@@ -129,6 +128,8 @@ static int aa_read_header(AVFormatContext *s)
for
(
i
=
0
;
i
<
16
;
i
++
)
for
(
i
=
0
;
i
<
16
;
i
++
)
av_log
(
s
,
AV_LOG_DEBUG
,
"%02x"
,
header_key
[
i
]);
av_log
(
s
,
AV_LOG_DEBUG
,
"%02x"
,
header_key
[
i
]);
av_log
(
s
,
AV_LOG_DEBUG
,
"
\n
"
);
av_log
(
s
,
AV_LOG_DEBUG
,
"
\n
"
);
}
else
{
av_dict_set
(
&
s
->
metadata
,
key
,
val
,
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