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
cd70d17f
Commit
cd70d17f
authored
Jun 14, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify ipod brand selection
Originally committed as revision 13770 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7b0fb8b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
movenc.c
libavformat/movenc.c
+6
-10
No files found.
libavformat/movenc.c
View file @
cd70d17f
...
@@ -1378,11 +1378,13 @@ static int mov_write_ftyp_tag(ByteIOContext *pb, AVFormatContext *s)
...
@@ -1378,11 +1378,13 @@ static int mov_write_ftyp_tag(ByteIOContext *pb, AVFormatContext *s)
{
{
MOVContext
*
mov
=
s
->
priv_data
;
MOVContext
*
mov
=
s
->
priv_data
;
offset_t
pos
=
url_ftell
(
pb
);
offset_t
pos
=
url_ftell
(
pb
);
int
has_h264
=
0
;
int
has_h264
=
0
,
has_video
=
0
;
int
i
;
int
i
;
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
AVStream
*
st
=
s
->
streams
[
i
];
AVStream
*
st
=
s
->
streams
[
i
];
if
(
st
->
codec
->
codec_type
==
CODEC_TYPE_VIDEO
)
has_video
=
1
;
if
(
st
->
codec
->
codec_id
==
CODEC_ID_H264
)
if
(
st
->
codec
->
codec_id
==
CODEC_ID_H264
)
has_h264
=
1
;
has_h264
=
1
;
}
}
...
@@ -1398,15 +1400,9 @@ static int mov_write_ftyp_tag(ByteIOContext *pb, AVFormatContext *s)
...
@@ -1398,15 +1400,9 @@ static int mov_write_ftyp_tag(ByteIOContext *pb, AVFormatContext *s)
put_tag
(
pb
,
"MSNV"
);
put_tag
(
pb
,
"MSNV"
);
else
if
(
mov
->
mode
==
MODE_MP4
)
else
if
(
mov
->
mode
==
MODE_MP4
)
put_tag
(
pb
,
"isom"
);
put_tag
(
pb
,
"isom"
);
else
if
(
mov
->
mode
==
MODE_IPOD
)
{
else
if
(
mov
->
mode
==
MODE_IPOD
)
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
put_tag
(
pb
,
has_video
?
"M4V "
:
"M4A "
);
if
(
s
->
streams
[
i
]
->
codec
->
codec_type
==
CODEC_TYPE_VIDEO
)
{
else
put_tag
(
pb
,
"M4V "
);
break
;
}
if
(
i
==
s
->
nb_streams
)
put_tag
(
pb
,
"M4A "
);
}
else
put_tag
(
pb
,
"qt "
);
put_tag
(
pb
,
"qt "
);
put_be32
(
pb
,
0x200
);
put_be32
(
pb
,
0x200
);
...
...
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