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
b9220e2d
Commit
b9220e2d
authored
Aug 18, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
ec79cd93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
43 deletions
+36
-43
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+36
-43
No files found.
modules/demux/avi/avi.c
View file @
b9220e2d
...
...
@@ -2381,13 +2381,9 @@ static void AVI_IndexCreate( demux_t *p_demux )
/* Only show dialog if AVI is > 10MB */
i_dialog_id
=
-
1
;
if
(
stream_Size
(
p_demux
->
s
)
>
10000000
)
{
i_dialog_id
=
intf_IntfProgress
(
p_demux
,
_
(
"Fixing AVI Index..."
),
0
.
0
);
i_dialog_update
=
mdate
();
}
if
(
stream_Size
(
p_demux
->
s
)
>
10000000
)
i_dialog_id
=
intf_IntfProgress
(
p_demux
,
_
(
"Fixing AVI Index..."
),
0
.
0
);
for
(
;;
)
{
...
...
@@ -2402,18 +2398,17 @@ static void AVI_IndexCreate( demux_t *p_demux )
if
(
intf_ProgressIsCancelled
(
p_demux
,
i_dialog_id
)
)
break
;
int64_t
i_pos
=
stream_Tell
(
p_demux
->
s
)
*
100
/
double
f_pos
=
100
.
0
*
stream_Tell
(
p_demux
->
s
)
/
stream_Size
(
p_demux
->
s
);
float
f_pos
=
(
float
)
i_pos
;
i_dialog_update
=
mdate
();
intf_ProgressUpdate
(
p_demux
,
i_dialog_id
,
_
(
"Fixing AVI Index..."
),
f_pos
,
-
1
);
i_dialog_update
=
mdate
();
}
if
(
AVI_PacketGetHeader
(
p_demux
,
&
pk
)
)
{
break
;
}
if
(
pk
.
i_stream
<
p_sys
->
i_track
&&
pk
.
i_cat
==
p_sys
->
track
[
pk
.
i_stream
]
->
i_cat
)
{
...
...
@@ -2437,18 +2432,20 @@ static void AVI_IndexCreate( demux_t *p_demux )
AVIFOURCC_RIFF
,
1
);
msg_Dbg
(
p_demux
,
"looking for new RIFF chunk"
);
if
(
stream_Seek
(
p_demux
->
s
,
p_sysx
->
i_chunk_pos
+
24
))
{
if
(
stream_Seek
(
p_demux
->
s
,
p_sysx
->
i_chunk_pos
+
24
)
)
goto
print_stat
;
}
break
;
}
goto
print_stat
;
case
AVIFOURCC_RIFF
:
msg_Dbg
(
p_demux
,
"new RIFF chunk found"
);
break
;
case
AVIFOURCC_rec
:
case
AVIFOURCC_JUNK
:
break
;
default:
msg_Warn
(
p_demux
,
"need resync, probably broken avi"
);
if
(
AVI_PacketSearch
(
p_demux
)
)
...
...
@@ -2468,16 +2465,12 @@ static void AVI_IndexCreate( demux_t *p_demux )
print_stat:
if
(
i_dialog_id
>
0
)
{
intf_UserHide
(
p_demux
,
i_dialog_id
);
}
for
(
i_stream
=
0
;
i_stream
<
p_sys
->
i_track
;
i_stream
++
)
{
msg_Dbg
(
p_demux
,
"stream[%d] creating %d index entries"
,
i_stream
,
p_sys
->
track
[
i_stream
]
->
i_idxnb
);
msg_Dbg
(
p_demux
,
"stream[%d] creating %d index entries"
,
i_stream
,
p_sys
->
track
[
i_stream
]
->
i_idxnb
);
}
}
...
...
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