Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
36bca799
Commit
36bca799
authored
Sep 03, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved a bit still frame support.
parent
4a160042
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
modules/access/dvdnav.c
modules/access/dvdnav.c
+9
-9
No files found.
modules/access/dvdnav.c
View file @
36bca799
...
...
@@ -612,6 +612,7 @@ static int Demux( demux_t *p_demux )
switch
(
i_event
)
{
case
DVDNAV_BLOCK_OK
:
/* mpeg block */
p_sys
->
p_ev
->
b_still
=
false
;
DemuxBlock
(
p_demux
,
packet
,
i_len
);
break
;
...
...
@@ -621,19 +622,18 @@ static int Demux( demux_t *p_demux )
case
DVDNAV_STILL_FRAME
:
{
/* We send a dummy mpeg2 end of sequence to force still frame display */
static
const
uint8_t
buffer
[]
=
{
0x00
,
0x00
,
0x01
,
0xe0
,
0x00
,
0x07
,
0x80
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0xB7
,
};
DemuxBlock
(
p_demux
,
buffer
,
sizeof
(
buffer
)
);
/* */
dvdnav_still_event_t
*
event
=
(
dvdnav_still_event_t
*
)
packet
;
vlc_mutex_lock
(
&
p_sys
->
p_ev
->
lock
);
if
(
!
p_sys
->
p_ev
->
b_still
)
{
/* We send a dummy mpeg2 end of sequence to force still frame display */
static
const
uint8_t
buffer
[]
=
{
0x00
,
0x00
,
0x01
,
0xe0
,
0x00
,
0x07
,
0x80
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
,
0xB7
,
};
DemuxBlock
(
p_demux
,
buffer
,
sizeof
(
buffer
)
);
msg_Dbg
(
p_demux
,
"DVDNAV_STILL_FRAME"
);
msg_Dbg
(
p_demux
,
" - length=0x%x"
,
event
->
length
);
p_sys
->
p_ev
->
b_still
=
true
;
...
...
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