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
b5c566d9
Commit
b5c566d9
authored
Jul 30, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: do away with strang stream_Tell >= stream_Size check.
parent
b7594a14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+5
-8
No files found.
modules/demux/avformat/demux.c
View file @
b5c566d9
...
...
@@ -514,19 +514,16 @@ static offset_t IOSeek( void *opaque, offset_t offset, int whence )
}
if
(
i_absolute
<
0
)
i_absolute
=
0
;
if
(
i_size
)
if
(
i_size
&&
i_absolute
>=
i_size
)
{
if
(
i_absolute
>
i_size
)
i_absolute
=
i_size
;
if
(
stream_Tell
(
p_demux
->
s
)
>=
i_size
)
{
msg_Err
(
p_demux
,
"Seeking too far : EOF?"
);
return
-
1
;
}
msg_Dbg
(
p_demux
,
"Trying to seek too far : EOF?"
);
return
-
1
;
}
if
(
stream_Seek
(
p_demux
->
s
,
i_absolute
)
)
{
msg_Warn
(
p_demux
,
"we were not allowed to seek, or EOF "
);
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