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
02799762
Commit
02799762
authored
Nov 01, 2006
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless mp4 field
Originally committed as revision 6861 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e164fbfe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
mov.c
libavformat/mov.c
+1
-19
No files found.
libavformat/mov.c
View file @
02799762
...
@@ -262,7 +262,6 @@ typedef struct MOVStreamContext {
...
@@ -262,7 +262,6 @@ typedef struct MOVStreamContext {
}
MOVStreamContext
;
}
MOVStreamContext
;
typedef
struct
MOVContext
{
typedef
struct
MOVContext
{
int
mp4
;
/* set to 1 as soon as we are sure that the file is an .mp4 file (even some header parsing depends on this) */
AVFormatContext
*
fc
;
AVFormatContext
*
fc
;
int
time_scale
;
int
time_scale
;
int64_t
duration
;
/* duration of the longest track */
int64_t
duration
;
/* duration of the longest track */
...
@@ -394,7 +393,6 @@ static int mov_read_ctab(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
...
@@ -394,7 +393,6 @@ static int mov_read_ctab(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
static
int
mov_read_hdlr
(
MOVContext
*
c
,
ByteIOContext
*
pb
,
MOV_atom_t
atom
)
static
int
mov_read_hdlr
(
MOVContext
*
c
,
ByteIOContext
*
pb
,
MOV_atom_t
atom
)
{
{
AVStream
*
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
AVStream
*
st
=
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
];
int
len
=
0
;
uint32_t
type
;
uint32_t
type
;
uint32_t
ctype
;
uint32_t
ctype
;
...
@@ -407,10 +405,6 @@ static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
...
@@ -407,10 +405,6 @@ static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
dprintf
(
"ctype= %c%c%c%c (0x%08lx)
\n
"
,
*
((
char
*
)
&
ctype
),
((
char
*
)
&
ctype
)[
1
],
((
char
*
)
&
ctype
)[
2
],
((
char
*
)
&
ctype
)[
3
],
(
long
)
ctype
);
dprintf
(
"ctype= %c%c%c%c (0x%08lx)
\n
"
,
*
((
char
*
)
&
ctype
),
((
char
*
)
&
ctype
)[
1
],
((
char
*
)
&
ctype
)[
2
],
((
char
*
)
&
ctype
)[
3
],
(
long
)
ctype
);
dprintf
(
"stype= %c%c%c%c
\n
"
,
*
((
char
*
)
&
type
),
((
char
*
)
&
type
)[
1
],
((
char
*
)
&
type
)[
2
],
((
char
*
)
&
type
)[
3
]);
dprintf
(
"stype= %c%c%c%c
\n
"
,
*
((
char
*
)
&
type
),
((
char
*
)
&
type
)[
1
],
((
char
*
)
&
type
)[
2
],
((
char
*
)
&
type
)[
3
]);
if
(
ctype
==
MKTAG
(
'm'
,
'h'
,
'l'
,
'r'
))
/* MOV */
c
->
mp4
=
0
;
else
if
(
ctype
==
0
)
c
->
mp4
=
1
;
if
(
type
==
MKTAG
(
'v'
,
'i'
,
'd'
,
'e'
))
if
(
type
==
MKTAG
(
'v'
,
'i'
,
'd'
,
'e'
))
st
->
codec
->
codec_type
=
CODEC_TYPE_VIDEO
;
st
->
codec
->
codec_type
=
CODEC_TYPE_VIDEO
;
else
if
(
type
==
MKTAG
(
's'
,
'o'
,
'u'
,
'n'
))
else
if
(
type
==
MKTAG
(
's'
,
'o'
,
'u'
,
'n'
))
...
@@ -421,17 +415,6 @@ static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
...
@@ -421,17 +415,6 @@ static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
if
(
atom
.
size
<=
24
)
if
(
atom
.
size
<=
24
)
return
0
;
/* nothing left to read */
return
0
;
/* nothing left to read */
/* XXX: MP4 uses a C string, not a pascal one */
/* component name */
if
(
c
->
mp4
)
{
/* .mp4: C string */
while
(
get_byte
(
pb
)
&&
(
++
len
<
(
atom
.
size
-
24
)));
}
else
{
/* .mov: PASCAL string */
len
=
get_byte
(
pb
);
url_fskip
(
pb
,
len
);
}
url_fskip
(
pb
,
atom
.
size
-
(
url_ftell
(
pb
)
-
atom
.
offset
));
url_fskip
(
pb
,
atom
.
size
-
(
url_ftell
(
pb
)
-
atom
.
offset
));
return
0
;
return
0
;
...
@@ -538,7 +521,6 @@ static int mov_read_ftyp(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
...
@@ -538,7 +521,6 @@ static int mov_read_ftyp(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
case
MKTAG
(
'M'
,
'4'
,
'A'
,
' '
):
/* Apple iTunes AAC-LC Audio */
case
MKTAG
(
'M'
,
'4'
,
'A'
,
' '
):
/* Apple iTunes AAC-LC Audio */
case
MKTAG
(
'M'
,
'4'
,
'P'
,
' '
):
/* Apple iTunes AAC-LC Protected Audio */
case
MKTAG
(
'M'
,
'4'
,
'P'
,
' '
):
/* Apple iTunes AAC-LC Protected Audio */
case
MKTAG
(
'm'
,
'j'
,
'p'
,
'2'
):
/* Motion Jpeg 2000 */
case
MKTAG
(
'm'
,
'j'
,
'p'
,
'2'
):
/* Motion Jpeg 2000 */
c
->
mp4
=
1
;
case
MKTAG
(
'q'
,
't'
,
' '
,
' '
):
case
MKTAG
(
'q'
,
't'
,
' '
,
' '
):
default:
default:
av_log
(
c
->
fc
,
AV_LOG_DEBUG
,
"ISO: File Type Major Brand: %.4s
\n
"
,(
char
*
)
&
type
);
av_log
(
c
->
fc
,
AV_LOG_DEBUG
,
"ISO: File Type Major Brand: %.4s
\n
"
,(
char
*
)
&
type
);
...
@@ -982,7 +964,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
...
@@ -982,7 +964,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
}
}
//Read QT version 1 fields. In version 0 theese dont exist
//Read QT version 1 fields. In version 0 theese dont exist
dprintf
(
"version =%d
mp4=%d
\n
"
,
version
,
c
->
mp4
);
dprintf
(
"version =%d
\n
"
,
version
);
if
(
version
==
1
)
{
if
(
version
==
1
)
{
sc
->
sample_size_v1
.
den
=
get_be32
(
pb
);
/* samples per packet */
sc
->
sample_size_v1
.
den
=
get_be32
(
pb
);
/* samples per packet */
get_be32
(
pb
);
/* bytes per packet */
get_be32
(
pb
);
/* bytes per packet */
...
...
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