Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
491d4186
Commit
491d4186
authored
Aug 10, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: Fix DEMUX_SET_TIME
parent
924ef277
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+5
-3
No files found.
modules/demux/avformat/demux.c
View file @
491d4186
...
@@ -430,6 +430,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
...
@@ -430,6 +430,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_SET_TIME
:
case
DEMUX_SET_TIME
:
i64
=
(
int64_t
)
va_arg
(
args
,
int64_t
);
i64
=
(
int64_t
)
va_arg
(
args
,
int64_t
);
i64
=
i64
*
AV_TIME_BASE
/
1000000
;
if
(
p_sys
->
ic
->
start_time
!=
(
int64_t
)
AV_NOPTS_VALUE
)
if
(
p_sys
->
ic
->
start_time
!=
(
int64_t
)
AV_NOPTS_VALUE
)
i64
+=
p_sys
->
ic
->
start_time
;
i64
+=
p_sys
->
ic
->
start_time
;
...
@@ -501,12 +502,13 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
...
@@ -501,12 +502,13 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
return
i_size
;
return
i_size
;
#endif
#endif
case
SEEK_SET
:
case
SEEK_SET
:
i_absolute
=
(
int64_t
)
offset
;
break
;
break
;
case
SEEK_CUR
:
case
SEEK_CUR
:
i_absolute
=
stream_Tell
(
p_demux
->
s
)
+
offset
;
i_absolute
=
stream_Tell
(
p_demux
->
s
)
+
(
int64_t
)
offset
;
break
;
break
;
case
SEEK_END
:
case
SEEK_END
:
i_absolute
=
i_size
+
offset
;
i_absolute
=
i_size
+
(
int64_t
)
offset
;
break
;
break
;
default:
default:
return
-
1
;
return
-
1
;
...
@@ -515,7 +517,7 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
...
@@ -515,7 +517,7 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
if
(
i_absolute
<
0
)
if
(
i_absolute
<
0
)
i_absolute
=
0
;
i_absolute
=
0
;
if
(
i_size
&&
i_absolute
>=
i_size
)
if
(
i_size
>
0
&&
i_absolute
>=
i_size
)
{
{
msg_Dbg
(
p_demux
,
"Trying to seek too far : EOF?"
);
msg_Dbg
(
p_demux
,
"Trying to seek too far : EOF?"
);
return
-
1
;
return
-
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