Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
af802781
Commit
af802781
authored
Feb 21, 2003
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* (float) 0 the buffer if it cannot be decoded and fixed32.
right Meuuh ??? ;)
parent
e9c11545
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
modules/audio_filter/converter/mpgatofixed32.c
modules/audio_filter/converter/mpgatofixed32.c
+13
-3
No files found.
modules/audio_filter/converter/mpgatofixed32.c
View file @
af802781
...
...
@@ -3,7 +3,7 @@
* using MAD (MPEG Audio Decoder)
*****************************************************************************
* Copyright (C) 2001 by Jean-Paul Saman
* $Id: mpgatofixed32.c,v 1.
4 2003/02/20 01:52:45 sigmunau
Exp $
* $Id: mpgatofixed32.c,v 1.
5 2003/02/21 14:17:46 hartman
Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Jean-Paul Saman <jpsaman@wxs.nl>
...
...
@@ -123,9 +123,19 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
{
msg_Warn
(
p_aout
,
"libmad error: %s"
,
mad_stream_errorstr
(
&
p_sys
->
mad_stream
)
);
memset
(
p_out_buf
->
p_buffer
,
0
,
p_out_buf
->
i_nb_bytes
);
if
(
p_filter
->
output
.
i_format
==
VLC_FOURCC
(
'f'
,
'l'
,
'3'
,
'2'
)
)
{
int
i
;
float
*
a
=
(
float
*
)
p_out_buf
->
p_buffer
;
for
(
i
=
0
;
i
<
p_out_buf
->
i_nb_samples
;
i
++
)
*
a
++
=
0
.
0
;
return
;
}
else
{
memset
(
p_out_buf
->
p_buffer
,
0
,
p_out_buf
->
i_nb_bytes
);
}
}
mad_synth_frame
(
&
p_sys
->
mad_synth
,
&
p_sys
->
mad_frame
);
if
(
p_filter
->
output
.
i_format
==
VLC_FOURCC
(
'f'
,
'i'
,
'3'
,
'2'
)
)
...
...
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