Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b68794c7
Commit
b68794c7
authored
Dec 20, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smem: use aout_BitsPerSample()
parent
08b3f509
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
modules/stream_out/smem.c
modules/stream_out/smem.c
+3
-28
No files found.
modules/stream_out/smem.c
View file @
b68794c7
...
...
@@ -52,6 +52,7 @@
#include <vlc_sout.h>
#include <vlc_block.h>
#include <vlc_codec.h>
#include <vlc_aout.h>
/*****************************************************************************
* Module descriptor
...
...
@@ -268,36 +269,10 @@ static sout_stream_id_t *AddAudio( sout_stream_t *p_stream, es_format_t *p_fmt )
{
char
*
psz_tmp
;
sout_stream_id_t
*
id
;
int
i_bits_per_sample
;
int
i_bits_per_sample
=
aout_BitsPerSample
(
p_fmt
->
i_codec
)
;
switch
(
p_fmt
->
i_codec
)
if
(
!
i_bits_per_sample
)
{
case
VLC_CODEC_U8
:
case
VLC_CODEC_S8
:
i_bits_per_sample
=
8
;
break
;
case
VLC_CODEC_U16L
:
case
VLC_CODEC_S16L
:
case
VLC_CODEC_U16B
:
case
VLC_CODEC_S16B
:
i_bits_per_sample
=
16
;
break
;
case
VLC_CODEC_U24L
:
case
VLC_CODEC_S24L
:
case
VLC_CODEC_U24B
:
case
VLC_CODEC_S24B
:
i_bits_per_sample
=
24
;
break
;
case
VLC_CODEC_S32L
:
case
VLC_CODEC_S32B
:
case
VLC_CODEC_FL32
:
case
VLC_CODEC_FI32
:
i_bits_per_sample
=
32
;
break
;
case
VLC_CODEC_FL64
:
i_bits_per_sample
=
64
;
break
;
default:
msg_Err
(
p_stream
,
"Smem does only support raw audio format"
);
return
NULL
;
}
...
...
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