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
ea1bf08a
Commit
ea1bf08a
authored
Feb 06, 2016
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/asfenc: use ff_parse_creation_time_metadata
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
e942454d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
asfenc.c
libavformat/asfenc.c
+4
-7
No files found.
libavformat/asfenc.c
View file @
ea1bf08a
...
...
@@ -388,7 +388,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size,
{
ASFContext
*
asf
=
s
->
priv_data
;
AVIOContext
*
pb
=
s
->
pb
;
AVDictionaryEntry
*
tags
[
5
]
,
*
t
;
AVDictionaryEntry
*
tags
[
5
];
int
header_size
,
n
,
extra_size
,
extra_size2
,
wav_extra_size
;
int
has_title
,
has_aspect_ratio
=
0
;
int
metadata_count
;
...
...
@@ -408,12 +408,9 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size,
duration
=
asf
->
duration
+
PREROLL_TIME
*
10000
;
has_title
=
tags
[
0
]
||
tags
[
1
]
||
tags
[
2
]
||
tags
[
3
]
||
tags
[
4
];
if
(
!
file_size
&&
(
t
=
av_dict_get
(
s
->
metadata
,
"creation_time"
,
NULL
,
0
)))
{
if
(
av_parse_time
(
&
asf
->
creation_time
,
t
->
value
,
0
)
<
0
)
{
av_log
(
s
,
AV_LOG_WARNING
,
"Failed to parse creation_time %s
\n
"
,
t
->
value
);
asf
->
creation_time
=
0
;
}
av_dict_set
(
&
s
->
metadata
,
"creation_time"
,
NULL
,
0
);
if
(
!
file_size
)
{
if
(
ff_parse_creation_time_metadata
(
s
,
&
asf
->
creation_time
,
0
)
!=
0
)
av_dict_set
(
&
s
->
metadata
,
"creation_time"
,
NULL
,
0
);
}
metadata_count
=
av_dict_count
(
s
->
metadata
);
...
...
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