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
f33be93b
Commit
f33be93b
authored
Jul 18, 2011
by
Baptiste Coudurier
Committed by
Clément Bœsch
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mov: read tmcd tag and set timecode drop flag accordingly.
parent
62702075
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
mov.c
libavformat/mov.c
+12
-1
No files found.
libavformat/mov.c
View file @
f33be93b
...
@@ -1193,7 +1193,18 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
...
@@ -1193,7 +1193,18 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
st
->
codec
->
width
=
sc
->
width
;
st
->
codec
->
width
=
sc
->
width
;
st
->
codec
->
height
=
sc
->
height
;
st
->
codec
->
height
=
sc
->
height
;
}
else
{
}
else
{
/* other codec type, just skip (rtp, mp4s, tmcd ...) */
if
(
st
->
codec
->
codec_tag
==
MKTAG
(
't'
,
'm'
,
'c'
,
'd'
))
{
int
val
;
avio_rb32
(
pb
);
/* reserved */
val
=
avio_rb32
(
pb
);
/* flags */
if
(
val
&
1
)
st
->
codec
->
flags2
|=
CODEC_FLAG2_DROP_FRAME_TIMECODE
;
avio_rb32
(
pb
);
avio_rb32
(
pb
);
st
->
codec
->
time_base
.
den
=
get_byte
(
pb
);
st
->
codec
->
time_base
.
num
=
1
;
}
/* other codec type, just skip (rtp, mp4s, ...) */
avio_skip
(
pb
,
size
-
(
avio_tell
(
pb
)
-
start_pos
));
avio_skip
(
pb
,
size
-
(
avio_tell
(
pb
)
-
start_pos
));
}
}
/* this will read extra atoms at the end (wave, alac, damr, avcC, SMI ...) */
/* this will read extra atoms at the end (wave, alac, damr, avcC, SMI ...) */
...
...
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