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
55637346
Commit
55637346
authored
Jan 09, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* avi: read less data at once as it seems to give better sound. (I thinks
it's more a workaround that a true fix).
parent
f43cd0ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+9
-7
No files found.
modules/demux/avi/avi.c
View file @
55637346
...
...
@@ -2,7 +2,7 @@
* avi.c : AVI file Stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: avi.c,v 1.2
0 2003/01/07 21:49:01
fenrir Exp $
* $Id: avi.c,v 1.2
1 2003/01/09 18:23:43
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -1216,7 +1216,7 @@ static mtime_t AVI_GetPTS( avi_stream_t *p_info )
if
(
p_info
->
i_samplesize
)
{
/* we need a valid entry we will emulate one */
int
i_len
;
int
64_t
i_len
;
if
(
p_info
->
i_idxposc
==
p_info
->
i_idxnb
)
{
if
(
p_info
->
i_idxposc
)
...
...
@@ -1694,7 +1694,7 @@ static int AVIDemux_Seekable( input_thread_t *p_input )
p_avi
->
i_pcr
);
p_avi
->
i_time
+=
100
*
1000
;
/* read 100
ms */
p_avi
->
i_time
+=
25
*
1000
;
/* read 25
ms */
#ifdef __AVI_SUBTITLE__
if
(
p_avi
->
p_sub
)
...
...
@@ -1871,8 +1871,9 @@ static int AVIDemux_Seekable( input_thread_t *p_input )
{
i_size
=
__MIN
(
p_stream
->
p_index
[
p_stream
->
i_idxposc
].
i_length
-
p_stream
->
i_idxposb
,
100
*
1024
);
// 10Ko max
// toread[i_stream].i_toread );
// 100 * 1024 ); // 10Ko max
__MAX
(
toread
[
i_stream
].
i_toread
,
128
)
);
// 128 is to avoid infinit loop
}
else
{
...
...
@@ -2072,8 +2073,9 @@ static int AVIDemux_UnSeekable( input_thread_t *p_input )
{
return
(
-
1
);
}
p_pes
->
i_pts
=
input_ClockGetTS
(
p_input
,
p_pes
->
i_dts
=
p_pes
->
i_pts
=
input_ClockGetTS
(
p_input
,
p_input
->
stream
.
p_selected_program
,
AVI_GetPTS
(
p_stream
)
*
9
/
100
);
input_DecodePES
(
p_stream
->
p_es
->
p_decoder_fifo
,
p_pes
);
...
...
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