Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
af927e5e
Commit
af927e5e
authored
Jan 11, 2016
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: avi: fix skipping junk with non seekable streams
parent
b157016c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
modules/demux/avi/libavi.c
modules/demux/avi/libavi.c
+14
-2
No files found.
modules/demux/avi/libavi.c
View file @
af927e5e
...
@@ -98,8 +98,20 @@ static int AVI_NextChunk( stream_t *s, avi_chunk_t *p_chk )
...
@@ -98,8 +98,20 @@ static int AVI_NextChunk( stream_t *s, avi_chunk_t *p_chk )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
}
}
return
stream_Seek
(
s
,
p_chk
->
common
.
i_chunk_pos
+
__EVEN
(
p_chk
->
common
.
i_chunk_size
)
+
8
);
bool
b_seekable
=
false
;
uint64_t
i_offset
=
p_chk
->
common
.
i_chunk_pos
+
__EVEN
(
p_chk
->
common
.
i_chunk_size
)
+
8
;
if
(
!
stream_Control
(
s
,
STREAM_CAN_SEEK
,
&
b_seekable
)
&&
b_seekable
)
{
return
stream_Seek
(
s
,
i_offset
);
}
else
{
ssize_t
i_read
=
i_offset
-
stream_Tell
(
s
);
return
(
i_read
>=
0
&&
stream_Read
(
s
,
NULL
,
i_read
)
==
i_read
)
?
VLC_SUCCESS
:
VLC_EGENERIC
;
}
}
}
/****************************************************************************
/****************************************************************************
...
...
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