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
bd10f01a
Commit
bd10f01a
authored
Jan 23, 2012
by
Clément Bœsch
Committed by
Clément Bœsch
Feb 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mov: use new public timecode API.
parent
ed67dac0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
mov.c
libavformat/mov.c
+10
-11
No files found.
libavformat/mov.c
View file @
bd10f01a
...
@@ -31,13 +31,13 @@
...
@@ -31,13 +31,13 @@
#include "libavutil/avstring.h"
#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "libavutil/dict.h"
#include "libavutil/opt.h"
#include "libavutil/opt.h"
#include "libavutil/timecode.h"
#include "avformat.h"
#include "avformat.h"
#include "internal.h"
#include "internal.h"
#include "avio_internal.h"
#include "avio_internal.h"
#include "riff.h"
#include "riff.h"
#include "isom.h"
#include "isom.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/get_bits.h"
#include "libavcodec/timecode.h"
#include "id3v1.h"
#include "id3v1.h"
#include "mov_chan.h"
#include "mov_chan.h"
...
@@ -2656,17 +2656,16 @@ finish:
...
@@ -2656,17 +2656,16 @@ finish:
static
int
parse_timecode_in_framenum_format
(
AVFormatContext
*
s
,
AVStream
*
st
,
static
int
parse_timecode_in_framenum_format
(
AVFormatContext
*
s
,
AVStream
*
st
,
uint32_t
value
)
uint32_t
value
)
{
{
char
buf
[
16
];
AVTimecode
tc
;
struct
ff_timecode
tc
=
{
char
buf
[
AV_TIMECODE_STR_SIZE
];
.
drop
=
st
->
codec
->
flags2
&
CODEC_FLAG2_DROP_FRAME_TIMECODE
,
AVRational
rate
=
{
st
->
codec
->
time_base
.
den
,
.
rate
=
(
AVRational
){
st
->
codec
->
time_base
.
den
,
st
->
codec
->
time_base
.
num
};
st
->
codec
->
time_base
.
num
},
int
flags
=
st
->
codec
->
flags2
&
CODEC_FLAG2_DROP_FRAME_TIMECODE
?
AV_TIMECODE_FLAG_DROPFRAME
:
0
;
};
int
ret
=
av_timecode_init
(
&
tc
,
rate
,
flags
,
0
,
s
);
if
(
ret
<
0
)
if
(
avpriv_check_timecode_rate
(
s
,
tc
.
rate
,
tc
.
drop
)
<
0
)
return
ret
;
return
AVERROR
(
EINVAL
);
av_dict_set
(
&
st
->
metadata
,
"timecode"
,
av_dict_set
(
&
st
->
metadata
,
"timecode"
,
av
priv_timecode_to_string
(
buf
,
&
tc
,
value
),
0
);
av
_timecode_make_string
(
&
tc
,
buf
,
value
),
0
);
return
0
;
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