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
e0d3ebea
Commit
e0d3ebea
authored
Apr 28, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* avi: fixed playback of broken stream....
parent
8229bf31
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+7
-6
No files found.
modules/demux/avi/avi.c
View file @
e0d3ebea
...
...
@@ -2,7 +2,7 @@
* avi.c : AVI file Stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: avi.c,v 1.4
4 2003/04/27 13:55:51
fenrir Exp $
* $Id: avi.c,v 1.4
5 2003/04/28 23:25:50
fenrir Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -357,8 +357,9 @@ static int AVI_PacketNext( input_thread_t *p_input )
{
return
VLC_EGENERIC
;
}
//msg_Dbg( p_input, "skip %4.4s:%4.4s", (char*)&avi_ck.i_fourcc, (char*)&avi_ck.i_type );
if
(
avi_ck
.
i_fourcc
==
AVIFOURCC_LIST
&&
avi_ck
.
i_type
==
AVIFOURCC_rec
)
if
(
avi_ck
.
i_fourcc
==
AVIFOURCC_LIST
&&
(
avi_ck
.
i_type
==
AVIFOURCC_rec
||
avi_ck
.
i_type
==
AVIFOURCC_movi
)
)
{
return
AVI_SkipBytes
(
p_input
,
12
);
}
...
...
@@ -1554,7 +1555,7 @@ static int AVI_StreamChunkFind( input_thread_t *p_input,
/* find first chunk of i_stream that isn't in index */
if
(
p_avi
->
i_movi_lastchunk_pos
>=
p_avi
->
i_movi_begin
)
if
(
p_avi
->
i_movi_lastchunk_pos
>=
p_avi
->
i_movi_begin
+
12
)
{
AVI_SeekAbsolute
(
p_input
,
p_avi
->
i_movi_lastchunk_pos
);
if
(
AVI_PacketNext
(
p_input
)
)
...
...
@@ -1564,7 +1565,7 @@ static int AVI_StreamChunkFind( input_thread_t *p_input,
}
else
{
AVI_SeekAbsolute
(
p_input
,
p_avi
->
i_movi_begin
);
AVI_SeekAbsolute
(
p_input
,
p_avi
->
i_movi_begin
+
12
);
}
for
(
;;
)
...
...
@@ -2143,7 +2144,7 @@ static int AVIDemux_Seekable( input_thread_t *p_input )
{
/* no valid index, we will parse directly the stream
* in case we fail we will disable all finished stream */
if
(
p_avi
->
i_movi_lastchunk_pos
>=
p_avi
->
i_movi_begin
)
if
(
p_avi
->
i_movi_lastchunk_pos
>=
p_avi
->
i_movi_begin
+
12
)
{
AVI_SeekAbsolute
(
p_input
,
p_avi
->
i_movi_lastchunk_pos
);
if
(
AVI_PacketNext
(
p_input
)
)
...
...
@@ -2153,7 +2154,7 @@ static int AVIDemux_Seekable( input_thread_t *p_input )
}
else
{
AVI_SeekAbsolute
(
p_input
,
p_avi
->
i_movi_begin
);
AVI_SeekAbsolute
(
p_input
,
p_avi
->
i_movi_begin
+
12
);
}
for
(
;;
)
...
...
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