Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
5d561514
Commit
5d561514
authored
Jan 23, 2012
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movenc: Support muxing wmapro in ismv/isma
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
ddf42280
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
movenc.c
libavformat/movenc.c
+17
-2
No files found.
libavformat/movenc.c
View file @
5d561514
...
...
@@ -350,6 +350,15 @@ static int mov_write_ms_tag(AVIOContext *pb, MOVTrack *track)
return
update_size
(
pb
,
pos
);
}
static
int
mov_write_wfex_tag
(
AVIOContext
*
pb
,
MOVTrack
*
track
)
{
int64_t
pos
=
avio_tell
(
pb
);
avio_wb32
(
pb
,
0
);
ffio_wfourcc
(
pb
,
"wfex"
);
ff_put_wav_header
(
pb
,
track
->
enc
);
return
update_size
(
pb
,
pos
);
}
static
int
mov_write_chan_tag
(
AVIOContext
*
pb
,
MOVTrack
*
track
)
{
uint32_t
layout_tag
,
bitmap
;
...
...
@@ -514,6 +523,8 @@ static int mov_write_audio_tag(AVIOContext *pb, MOVTrack *track)
mov_write_ac3_tag
(
pb
,
track
);
else
if
(
track
->
enc
->
codec_id
==
CODEC_ID_ALAC
)
mov_write_extradata_tag
(
pb
,
track
);
else
if
(
track
->
enc
->
codec_id
==
CODEC_ID_WMAPRO
)
mov_write_wfex_tag
(
pb
,
track
);
else
if
(
track
->
vos_len
>
0
)
mov_write_glbl_tag
(
pb
,
track
);
...
...
@@ -763,9 +774,13 @@ static int mov_find_codec_tag(AVFormatContext *s, MOVTrack *track)
{
int
tag
=
track
->
enc
->
codec_tag
;
if
(
track
->
mode
==
MODE_MP4
||
track
->
mode
==
MODE_PSP
||
track
->
mode
==
MODE_ISM
)
if
(
track
->
mode
==
MODE_MP4
||
track
->
mode
==
MODE_PSP
)
tag
=
mp4_get_codec_tag
(
s
,
track
);
else
if
(
track
->
mode
==
MODE_ISM
)
{
tag
=
mp4_get_codec_tag
(
s
,
track
);
else
if
(
track
->
mode
==
MODE_IPOD
)
if
(
!
tag
&&
track
->
enc
->
codec_id
==
CODEC_ID_WMAPRO
)
tag
=
MKTAG
(
'w'
,
'm'
,
'a'
,
' '
);
}
else
if
(
track
->
mode
==
MODE_IPOD
)
tag
=
ipod_get_codec_tag
(
s
,
track
);
else
if
(
track
->
mode
&
MODE_3GP
)
tag
=
ff_codec_get_tag
(
codec_3gp_tags
,
track
->
enc
->
codec_id
);
...
...
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