Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a2383e92
Commit
a2383e92
authored
Sep 14, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libmpeg2: eliminate dead code and factor
parent
01c780ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
26 deletions
+10
-26
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+10
-26
No files found.
modules/codec/libmpeg2.c
View file @
a2383e92
...
...
@@ -386,7 +386,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_info
->
sequence
->
flags
&
SEQ_FLAG_LOW_DELAY
);
bool
b_skip
=
false
;
picture_t
*
p_pic
;
if
(
!
p_dec
->
b_pace_control
&&
!
p_sys
->
b_preroll
&&
!
(
p_sys
->
b_slice_i
&&
((
p_current
->
flags
...
...
@@ -396,12 +397,8 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
&
PIC_MASK_CODING_TYPE
,
/*p_sys->p_vout->render_time*/
0
/*FIXME*/
,
p_info
->
sequence
->
flags
&
SEQ_FLAG_LOW_DELAY
)
)
{
b_skip
=
true
;
}
picture_t
*
p_pic
=
NULL
;
if
(
!
b_skip
)
p_pic
=
NULL
;
else
{
p_pic
=
DpbNewPicture
(
p_dec
);
if
(
!
p_pic
)
...
...
@@ -418,28 +415,15 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
}
if
(
b_skip
||
!
p_pic
)
{
mpeg2_skip
(
p_sys
->
p_mpeg2dec
,
1
);
p_sys
->
b_skip
=
true
;
decoder_SynchroTrash
(
p_sys
->
p_synchro
);
PutPicture
(
p_dec
,
NULL
);
if
(
!
b_skip
)
{
block_Release
(
p_block
);
return
NULL
;
}
}
else
{
mpeg2_skip
(
p_sys
->
p_mpeg2dec
,
0
);
p_sys
->
b_skip
=
false
;
mpeg2_skip
(
p_sys
->
p_mpeg2dec
,
p_pic
==
NULL
);
p_sys
->
b_skip
=
p_pic
==
NULL
;
if
(
p_pic
!=
NULL
)
decoder_SynchroDecode
(
p_sys
->
p_synchro
);
else
decoder_SynchroTrash
(
p_sys
->
p_synchro
);
PutPicture
(
p_dec
,
p_pic
);
}
if
(
p_info
->
user_data_len
>
2
||
p_sys
->
i_gop_user_data
>
2
)
{
p_sys
->
i_cc_pts
=
i_pts
;
...
...
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