Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
bcd17b18
Commit
bcd17b18
authored
Jan 11, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* avi: fix my last fix :)
parent
35faa7ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+15
-3
No files found.
modules/demux/avi/avi.c
View file @
bcd17b18
...
...
@@ -2,7 +2,7 @@
* avi.c : AVI file Stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: avi.c,v 1.2
2 2003/01/11 18:10:49
fenrir Exp $
* $Id: avi.c,v 1.2
3 2003/01/11 18:31:17
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -1900,10 +1900,22 @@ static int AVIDemux_Seekable( input_thread_t *p_input )
/* read thoses data */
if
(
p_stream
->
i_samplesize
)
{
int
i_toread
;
if
(
(
i_toread
=
toread
[
i_stream
].
i_toread
)
<=
0
)
{
if
(
p_stream
->
i_samplesize
>
1
)
{
i_toread
=
p_stream
->
i_samplesize
;
}
else
{
i_toread
=
__MAX
(
AVI_PTSToByte
(
p_stream
,
20
*
1000
),
100
);
}
}
i_size
=
__MIN
(
p_stream
->
p_index
[
p_stream
->
i_idxposc
].
i_length
-
p_stream
->
i_idxposb
,
__MAX
(
toread
[
i_stream
].
i_toread
,
p_stream
->
i_samplesize
)
);
i_toread
);
}
else
{
...
...
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