Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
3086668b
Commit
3086668b
authored
Jan 28, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mpeg_audio.c : fixed a stack corruption. fprintf 1 - gdb 0.
parent
2db814a2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+11
-3
No files found.
modules/codec/mpeg_audio.c
View file @
3086668b
...
...
@@ -2,7 +2,7 @@
* mpeg_audio.c: parse MPEG audio sync info and packetize the stream
*****************************************************************************
* Copyright (C) 2001-2003 VideoLAN
* $Id: mpeg_audio.c,v 1.
6
2003/01/2
3 15:52:04 sam
Exp $
* $Id: mpeg_audio.c,v 1.
7
2003/01/2
8 21:17:34 fenrir
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
...
...
@@ -286,10 +286,18 @@ static int RunDecoder( decoder_fifo_t *p_fifo )
if
(
!
aout_DateGet
(
&
end_date
)
)
{
byte_t
p_junk
[
MAX_FRAME_SIZE
];
int
i_skip
=
i_current_frame_size
-
MAD_BUFFER_GUARD
;
/* We've just started the stream, wait for the first PTS. */
GetChunk
(
&
p_dec
->
bit_stream
,
p_junk
,
i_current_frame_size
-
MAD_BUFFER_GUARD
);
while
(
i_skip
>
0
)
{
int
i_read
;
i_read
=
__MIN
(
i_current_frame_size
-
MAD_BUFFER_GUARD
,
MAX_FRAME_SIZE
);
GetChunk
(
&
p_dec
->
bit_stream
,
p_junk
,
i_read
);
i_skip
-=
i_read
;
}
NextPTS
(
&
p_dec
->
bit_stream
,
&
pts
,
NULL
);
GetChunk
(
&
p_dec
->
bit_stream
,
p_sync
,
MAD_BUFFER_GUARD
);
continue
;
...
...
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