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
d8276739
Commit
d8276739
authored
Aug 04, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/libmpeg2.c: fixed problems with still frames in DVD menus.
parent
4cbb172e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+14
-2
No files found.
modules/codec/libmpeg2.c
View file @
d8276739
...
...
@@ -68,7 +68,8 @@ struct decoder_sys_t
* Output properties
*/
vout_synchro_t
*
p_synchro
;
int
i_aspect
;
int
i_aspect
;
mtime_t
i_last_frame_pts
;
};
...
...
@@ -479,7 +480,18 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_sys
->
p_info
->
discard_fbuf
->
id
);
}
if
(
p_pic
)
return
p_pic
;
/* For still frames */
if
(
state
==
STATE_END
&&
p_pic
)
p_pic
->
b_force
=
VLC_TRUE
;
if
(
p_pic
)
{
/* Avoid frames with identical timestamps.
* Especially needed for still frames in DVD menus. */
if
(
p_sys
->
i_last_frame_pts
==
p_pic
->
date
)
p_pic
->
date
++
;
p_sys
->
i_last_frame_pts
=
p_pic
->
date
;
return
p_pic
;
}
break
;
...
...
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