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
593ef6c5
Commit
593ef6c5
authored
Aug 05, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore frame with zero size.
This needs to be *reviewed*.
parent
0790860f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
modules/codec/speex.c
modules/codec/speex.c
+8
-12
No files found.
modules/codec/speex.c
View file @
593ef6c5
...
@@ -470,7 +470,8 @@ static aout_buffer_t *DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
...
@@ -470,7 +470,8 @@ static aout_buffer_t *DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
if
(
p_sys
->
i_frame_in_packet
<
p_sys
->
p_header
->
frames_per_packet
)
if
(
p_sys
->
i_frame_in_packet
<
p_sys
->
p_header
->
frames_per_packet
)
{
{
aout_buffer_t
*
p_aout_buffer
;
aout_buffer_t
*
p_aout_buffer
;
int
i_ret
;
if
(
p_sys
->
p_header
->
frame_size
==
0
)
return
NULL
;
p_aout_buffer
=
p_aout_buffer
=
p_dec
->
pf_aout_buffer_new
(
p_dec
,
p_sys
->
p_header
->
frame_size
);
p_dec
->
pf_aout_buffer_new
(
p_dec
,
p_sys
->
p_header
->
frame_size
);
...
@@ -479,18 +480,13 @@ static aout_buffer_t *DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
...
@@ -479,18 +480,13 @@ static aout_buffer_t *DecodePacket( decoder_t *p_dec, ogg_packet *p_oggpacket )
return
NULL
;
return
NULL
;
}
}
i_ret
=
speex_decode_int
(
p_sys
->
p_state
,
&
p_sys
->
bits
,
switch
(
speex_decode_int
(
p_sys
->
p_state
,
&
p_sys
->
bits
,
(
int16_t
*
)
p_aout_buffer
->
p_buffer
);
(
int16_t
*
)
p_aout_buffer
->
p_buffer
)
)
if
(
i_ret
==
-
1
)
{
/* End of stream */
return
NULL
;
}
if
(
i_ret
==
-
2
)
{
{
msg_Warn
(
p_dec
,
"decoding error: corrupted stream?"
);
case
-
2
:
return
NULL
;
msg_Warn
(
p_dec
,
"decoding error: corrupted stream?"
);
case
-
1
:
/* End of stream */
return
NULL
;
}
}
if
(
speex_bits_remaining
(
&
p_sys
->
bits
)
<
0
)
if
(
speex_bits_remaining
(
&
p_sys
->
bits
)
<
0
)
...
...
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