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
486b42b2
Commit
486b42b2
authored
Dec 20, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used VLC_TS_0 in GME demuxer.
GME demuxer is VLC_TS_INVALID compliant.
parent
dd05d100
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/demux/gme.cpp
modules/demux/gme.cpp
+5
-5
No files found.
modules/demux/gme.cpp
View file @
486b42b2
...
...
@@ -309,7 +309,7 @@ static int Open( vlc_object_t *p_this )
}
/* init time */
p_sys
->
i_time
=
1
;
p_sys
->
i_time
=
0
;
p_sys
->
i_length
=
314
*
(
int64_t
)
1000
;
msg_Dbg
(
p_demux
,
"GME loaded type=%s title=%s tracks=%i"
,
type_str
[
p_sys
->
i_type
],
...
...
@@ -377,13 +377,13 @@ static int Demux( demux_t *p_demux )
for
(
int
i
=
0
;
i
<
i_buf
;
i
++
)
p_frame
->
p_buffer
[
i
]
=
((
uint8_t
*
)
p_emubuf
)[
i
];
/* Set PCR */
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
(
int64_t
)
p_sys
->
i_time
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
VLC_TS_0
+
p_sys
->
i_time
);
p_frame
->
i_dts
=
p_frame
->
i_pts
=
VLC_TS_0
+
p_sys
->
i_time
;
/* We should use p_frame->i_buffer */
p_sys
->
i_time
+=
(
int64_t
)
1000000
*
p_frame
->
i_buffer
/
i_bk
/
p_sys
->
fmt
.
audio
.
i_rate
;
/* Send data */
p_frame
->
i_dts
=
p_frame
->
i_pts
=
p_sys
->
i_time
;
es_out_Send
(
p_demux
->
out
,
p_sys
->
es
,
p_frame
);
return
1
;
...
...
@@ -426,7 +426,7 @@ switch( i_query )
if( i64 >= 0 && i64 <= p_sys->i_length )
{
ModPlug_Seek( p_sys->f, i64 / 1000 );
p_sys->i_time = i64
+ 1
;
p_sys->i_time = i64;
return VLC_SUCCESS;
}
...
...
@@ -448,7 +448,7 @@ switch( i_query )
if( i64 >= 0 && i64 <= p_sys->i_length )
{
ModPlug_Seek( p_sys->f, i64 / 1000 );
p_sys->i_time = i64
+ 1
;
p_sys->i_time = i64;
return VLC_SUCCESS;
}
...
...
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