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
bf9a8d18
Commit
bf9a8d18
authored
Jan 28, 2014
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support writing E-AC3 in wav.
parent
862174ec
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
riff.c
libavformat/riff.c
+2
-0
riffenc.c
libavformat/riffenc.c
+5
-0
version.h
libavformat/version.h
+1
-1
No files found.
libavformat/riff.c
View file @
bf9a8d18
...
...
@@ -413,6 +413,8 @@ const AVCodecTag ff_codec_wav_tags[] = {
{
AV_CODEC_ID_AAC
,
0x1600
},
{
AV_CODEC_ID_AAC_LATM
,
0x1602
},
{
AV_CODEC_ID_AC3
,
0x2000
},
/* There is no Microsoft Format Tag for E-AC3, the GUID has to be used */
{
AV_CODEC_ID_EAC3
,
0x2000
},
{
AV_CODEC_ID_DTS
,
0x2001
},
{
AV_CODEC_ID_SONIC
,
0x2048
},
{
AV_CODEC_ID_SONIC_LS
,
0x2048
},
...
...
libavformat/riffenc.c
View file @
bf9a8d18
...
...
@@ -72,6 +72,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc)
waveformatextensible
=
(
enc
->
channels
>
2
&&
enc
->
channel_layout
)
||
enc
->
sample_rate
>
48000
||
enc
->
codec_id
==
AV_CODEC_ID_EAC3
||
av_get_bits_per_sample
(
enc
->
codec_id
)
>
16
;
if
(
waveformatextensible
)
...
...
@@ -183,10 +184,14 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc)
/* dwChannelMask */
avio_wl32
(
pb
,
enc
->
channel_layout
);
/* GUID + next 3 */
if
(
enc
->
codec_id
==
AV_CODEC_ID_EAC3
)
{
ff_put_guid
(
pb
,
get_codec_guid
(
enc
->
codec_id
,
ff_codec_wav_guids
));
}
else
{
avio_wl32
(
pb
,
enc
->
codec_tag
);
avio_wl32
(
pb
,
0x00100000
);
avio_wl32
(
pb
,
0xAA000080
);
avio_wl32
(
pb
,
0x719B3800
);
}
}
else
{
avio_wl16
(
pb
,
riff_extradata
-
riff_extradata_start
);
/* cbSize */
}
...
...
libavformat/version.h
View file @
bf9a8d18
...
...
@@ -31,7 +31,7 @@
#define LIBAVFORMAT_VERSION_MAJOR 55
#define LIBAVFORMAT_VERSION_MINOR 28
#define LIBAVFORMAT_VERSION_MICRO 10
0
#define LIBAVFORMAT_VERSION_MICRO 10
1
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
...
...
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