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
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
Hide 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/23 15:52:04 sam
Exp $
* $Id: mpeg_audio.c,v 1.
7 2003/01/28 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