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
23e48326
Commit
23e48326
authored
Mar 06, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/avfoundation: Add support for 16bit integer input.
Reviewed-by: Thilo Borgmann
parent
6c8a1589
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
avfoundation.m
libavdevice/avfoundation.m
+6
-0
No files found.
libavdevice/avfoundation.m
View file @
23e48326
...
...
@@ -500,8 +500,14 @@ static int get_audio_config(AVFormatContext *s)
if
(
basic_desc
->
mFormatID
==
kAudioFormatLinearPCM
&&
ctx
->
audio_float
&&
ctx
->
audio_bits_per_sample
==
32
&&
ctx
->
audio_packed
)
{
stream
->
codec
->
codec_id
=
ctx
->
audio_be
?
AV_CODEC_ID_PCM_F32BE
:
AV_CODEC_ID_PCM_F32LE
;
}
else
if
(
basic_desc
->
mFormatID
==
kAudioFormatLinearPCM
&&
ctx
->
audio_signed_integer
&&
ctx
->
audio_bits_per_sample
==
16
&&
ctx
->
audio_packed
)
{
stream
->
codec
->
codec_id
=
ctx
->
audio_be
?
AV_CODEC_ID_PCM_S16BE
:
AV_CODEC_ID_PCM_S16LE
;
}
else
{
av_log
(
s
,
AV_LOG_ERROR
,
"audio format is not supported
\n
"
);
return
1
;
...
...
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