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
f444b977
Commit
f444b977
authored
Mar 22, 2006
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean
Originally committed as revision 5194 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1175561e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
mov.c
libavformat/mov.c
+15
-13
No files found.
libavformat/mov.c
View file @
f444b977
...
...
@@ -668,24 +668,30 @@ static int mov_read_moov(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static
int
mov_read_mdhd
(
MOVContext
*
c
,
ByteIOContext
*
pb
,
MOV_atom_t
atom
)
{
int
version
;
AVStream
*
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
MOVStreamContext
*
sc
=
(
MOVStreamContext
*
)
st
->
priv_data
;
int
version
=
get_byte
(
pb
);
int
lang
;
version
=
get_byte
(
pb
);
/* version */
if
(
version
>
1
)
return
1
;
/* unsupported */
get_byte
(
pb
);
get_byte
(
pb
);
get_byte
(
pb
);
/* flags */
(
version
==
1
)
?
get_be64
(
pb
)
:
get_be32
(
pb
);
/* creation time */
(
version
==
1
)
?
get_be64
(
pb
)
:
get_be32
(
pb
);
/* modification time */
if
(
version
==
1
)
{
get_be64
(
pb
);
get_be64
(
pb
);
}
else
{
get_be32
(
pb
);
/* creation time */
get_be32
(
pb
);
/* modification time */
}
c
->
streams
[
c
->
fc
->
nb_streams
-
1
]
->
time_scale
=
get_be32
(
pb
);
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
]
->
duration
=
(
version
==
1
)
?
get_be64
(
pb
)
:
get_be32
(
pb
);
/* duration */
sc
->
time_scale
=
get_be32
(
pb
);
st
->
duration
=
(
version
==
1
)
?
get_be64
(
pb
)
:
get_be32
(
pb
);
/* duration */
lang
=
get_be16
(
pb
);
/* language */
ff_mov_lang_to_iso639
(
lang
,
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
]
->
language
);
ff_mov_lang_to_iso639
(
lang
,
st
->
language
);
get_be16
(
pb
);
/* quality */
return
0
;
...
...
@@ -1339,12 +1345,8 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static
int
mov_read_tkhd
(
MOVContext
*
c
,
ByteIOContext
*
pb
,
MOV_atom_t
atom
)
{
AVStream
*
st
;
int
version
;
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
version
=
get_byte
(
pb
);
/* version */
AVStream
*
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
int
version
=
get_byte
(
pb
);
get_byte
(
pb
);
get_byte
(
pb
);
get_byte
(
pb
);
/* flags */
...
...
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