Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
5593848a
Commit
5593848a
authored
Aug 03, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mad: convert as requested by caller (refs #5150)
parent
c54022a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
modules/audio_filter/converter/mpgatofixed32.c
modules/audio_filter/converter/mpgatofixed32.c
+7
-8
No files found.
modules/audio_filter/converter/mpgatofixed32.c
View file @
5593848a
...
...
@@ -39,7 +39,6 @@
#include <vlc_aout.h>
#include <vlc_block.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
/*****************************************************************************
* Local prototypes
...
...
@@ -177,9 +176,14 @@ static int OpenFilter( vlc_object_t *p_this )
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
filter_sys_t
*
p_sys
;
if
(
p_filter
->
fmt_in
.
i_codec
!=
VLC_CODEC_MPGA
&&
p_filter
->
fmt_in
.
i_codec
!=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'3'
)
)
if
(
p_filter
->
fmt_in
.
audio
.
i_format
!=
VLC_CODEC_MPGA
&&
p_filter
->
fmt_in
.
audio
.
i_format
!=
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'3'
)
)
return
VLC_EGENERIC
;
if
(
p_filter
->
fmt_out
.
audio
.
i_format
!=
VLC_CODEC_FL32
&&
p_filter
->
fmt_out
.
audio
.
i_format
!=
VLC_CODEC_FI32
)
return
VLC_EGENERIC
;
if
(
!
AOUT_FMTS_SIMILAR
(
&
p_filter
->
fmt_in
.
audio
,
&
p_filter
->
fmt_out
.
audio
)
)
return
VLC_EGENERIC
;
...
...
@@ -197,11 +201,6 @@ static int OpenFilter( vlc_object_t *p_this )
mad_synth_init
(
&
p_sys
->
mad_synth
);
mad_stream_options
(
&
p_sys
->
mad_stream
,
MAD_OPTION_IGNORECRC
);
p_filter
->
fmt_out
.
i_codec
=
HAVE_FPU
?
VLC_CODEC_FL32
:
VLC_CODEC_FI32
;
p_filter
->
fmt_out
.
audio
.
i_format
=
p_filter
->
fmt_out
.
i_codec
;
p_filter
->
fmt_out
.
audio
.
i_bitspersample
=
aout_BitsPerSample
(
p_filter
->
fmt_out
.
i_codec
);
msg_Dbg
(
p_this
,
"%4.4s->%4.4s, bits per sample: %i"
,
(
char
*
)
&
p_filter
->
fmt_in
.
i_codec
,
(
char
*
)
&
p_filter
->
fmt_out
.
i_codec
,
...
...
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