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
aa1c1c61
Commit
aa1c1c61
authored
Jun 19, 2006
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix aac in mov for ipod
Originally committed as revision 5498 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7b49ce2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
movenc.c
libavformat/movenc.c
+12
-4
No files found.
libavformat/movenc.c
View file @
aa1c1c61
...
...
@@ -323,6 +323,10 @@ static int mov_write_wave_tag(ByteIOContext *pb, MOVTrack* track)
put_le32
(
pb
,
track
->
tag
);
if
(
track
->
enc
->
codec_id
==
CODEC_ID_AAC
)
{
/* useless atom needed by mplayer, ipod, not needed by quicktime */
put_be32
(
pb
,
12
);
/* size */
put_tag
(
pb
,
"mp4a"
);
put_be32
(
pb
,
0
);
mov_write_esds_tag
(
pb
,
track
);
}
else
if
(
track
->
enc
->
codec_id
==
CODEC_ID_PCM_S24LE
||
track
->
enc
->
codec_id
==
CODEC_ID_PCM_S32LE
)
{
...
...
@@ -394,10 +398,14 @@ static int mov_write_audio_tag(ByteIOContext *pb, MOVTrack* track)
if
(
version
==
1
)
{
/* SoundDescription V1 extended info */
put_be32
(
pb
,
track
->
enc
->
frame_size
);
/* Samples per packet */
put_be32
(
pb
,
track
->
sampleDuration
);
/* Bytes per frame */
put_be32
(
pb
,
8
);
/* Bytes per sample */
put_be32
(
pb
,
2
);
put_be32
(
pb
,
track
->
enc
->
frame_size
);
/* Samples per packet */
/* Parameters tested on quicktime 6.5, 7 */
put_be32
(
pb
,
1
);
/* Bytes per packet */
/* FIXME not correct */
/* 8 is the min value needed for in32 to work with quicktime 6.5 */
/* Value ignored by other codecs currently supported (others might need it) */
put_be32
(
pb
,
8
);
/* Bytes per frame */
put_be32
(
pb
,
2
);
/* Bytes per sample */
}
if
(
track
->
mode
==
MODE_MOV
&&
...
...
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