Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
2b22ca83
Commit
2b22ca83
authored
Oct 22, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/speex.c: fixed a couple of bugs.
parent
dd9e6708
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/codec/speex.c
modules/codec/speex.c
+5
-3
No files found.
modules/codec/speex.c
View file @
2b22ca83
/*****************************************************************************
/*****************************************************************************
* speex.c: speex decoder module making use of libspeex.
* speex.c: speex decoder
/packetizer
module making use of libspeex.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: speex.c,v 1.
1 2003/10/22 17:12:30
gbazin Exp $
* $Id: speex.c,v 1.
2 2003/10/22 18:24:08
gbazin Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
*
...
@@ -217,6 +217,7 @@ static int RunDecoder( decoder_t *p_dec, block_t *p_block )
...
@@ -217,6 +217,7 @@ static int RunDecoder( decoder_t *p_dec, block_t *p_block )
if
(
ProcessHeader
(
p_dec
,
&
oggpacket
)
!=
VLC_SUCCESS
)
if
(
ProcessHeader
(
p_dec
,
&
oggpacket
)
!=
VLC_SUCCESS
)
{
{
msg_Err
(
p_dec
,
"Initial Speex header is corrupted"
);
msg_Err
(
p_dec
,
"Initial Speex header is corrupted"
);
block_Release
(
p_block
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -359,7 +360,7 @@ static int ProcessHeader( decoder_t *p_dec, ogg_packet *p_oggpacket )
...
@@ -359,7 +360,7 @@ static int ProcessHeader( decoder_t *p_dec, ogg_packet *p_oggpacket )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
p_header
->
nb_channels
==
1
)
if
(
p_header
->
nb_channels
==
2
)
{
{
SpeexStereoState
stereo
=
SPEEX_STEREO_STATE_INIT
;
SpeexStereoState
stereo
=
SPEEX_STEREO_STATE_INIT
;
p_sys
->
stereo
=
stereo
;
p_sys
->
stereo
=
stereo
;
...
@@ -470,6 +471,7 @@ static int DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
...
@@ -470,6 +471,7 @@ static int DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
aout_DecPlay
(
p_sys
->
p_aout
,
p_sys
->
p_aout_input
,
p_aout_buffer
);
aout_DecPlay
(
p_sys
->
p_aout
,
p_sys
->
p_aout_input
,
p_aout_buffer
);
}
}
return
VLC_SUCCESS
;
}
}
/*****************************************************************************
/*****************************************************************************
...
...
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