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
11d3a7ac
Commit
11d3a7ac
authored
Nov 12, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg_audio: use a variable to avoid pointer dereference
parent
903d5ae9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/codec/mpeg_audio.c
modules/codec/mpeg_audio.c
+8
-6
No files found.
modules/codec/mpeg_audio.c
View file @
11d3a7ac
...
...
@@ -192,28 +192,30 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
!
pp_block
||
!*
pp_block
)
return
NULL
;
if
(
(
*
pp_block
)
->
i_flags
&
(
BLOCK_FLAG_DISCONTINUITY
|
BLOCK_FLAG_CORRUPTED
)
)
block_t
*
p_block
=
*
pp_block
;
if
(
p_block
->
i_flags
&
(
BLOCK_FLAG_DISCONTINUITY
|
BLOCK_FLAG_CORRUPTED
)
)
{
if
(
(
*
pp_block
)
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
if
(
p_block
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
p_sys
->
i_state
=
STATE_NOSYNC
;
block_BytestreamEmpty
(
&
p_sys
->
bytestream
);
}
date_Set
(
&
p_sys
->
end_date
,
0
);
block_Release
(
*
p
p_block
);
block_Release
(
p_block
);
p_sys
->
b_discontinuity
=
true
;
return
NULL
;
}
if
(
!
date_Get
(
&
p_sys
->
end_date
)
&&
(
*
pp_block
)
->
i_pts
<=
VLC_TS_INVALID
)
if
(
!
date_Get
(
&
p_sys
->
end_date
)
&&
p_block
->
i_pts
<=
VLC_TS_INVALID
)
{
/* We've just started the stream, wait for the first PTS. */
msg_Dbg
(
p_dec
,
"waiting for PTS"
);
block_Release
(
*
p
p_block
);
block_Release
(
p_block
);
return
NULL
;
}
block_BytestreamPush
(
&
p_sys
->
bytestream
,
*
p
p_block
);
block_BytestreamPush
(
&
p_sys
->
bytestream
,
p_block
);
while
(
1
)
{
...
...
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