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
fe8959bb
Commit
fe8959bb
authored
Oct 12, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/riffenc: Always write unexpected channel_mask.
Allows to write arbitrary channel masks also for 16bit 48kHz pcm.
parent
230178df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
riffenc.c
libavformat/riffenc.c
+2
-0
version.h
libavformat/version.h
+1
-1
No files found.
libavformat/riffenc.c
View file @
fe8959bb
...
...
@@ -71,6 +71,8 @@ int ff_put_wav_header(AVFormatContext *s, AVIOContext *pb,
frame_size
=
av_get_audio_frame_duration2
(
par
,
par
->
block_align
);
waveformatextensible
=
(
par
->
channels
>
2
&&
par
->
channel_layout
)
||
par
->
channels
==
1
&&
par
->
channel_layout
&&
par
->
channel_layout
!=
AV_CH_LAYOUT_MONO
||
par
->
channels
==
2
&&
par
->
channel_layout
&&
par
->
channel_layout
!=
AV_CH_LAYOUT_STEREO
||
par
->
sample_rate
>
48000
||
par
->
codec_id
==
AV_CODEC_ID_EAC3
||
av_get_bits_per_sample
(
par
->
codec_id
)
>
16
;
...
...
libavformat/version.h
View file @
fe8959bb
...
...
@@ -33,7 +33,7 @@
// Also please add any ticket numbers that you believe might be affected here
#define LIBAVFORMAT_VERSION_MAJOR 57
#define LIBAVFORMAT_VERSION_MINOR 51
#define LIBAVFORMAT_VERSION_MICRO 10
6
#define LIBAVFORMAT_VERSION_MICRO 10
7
#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