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
f581e336
Commit
f581e336
authored
Oct 24, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* avi: fix for playing avi file from ffserver.
parent
267e0621
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/demux/avi/libavi.c
modules/demux/avi/libavi.c
+10
-4
No files found.
modules/demux/avi/libavi.c
View file @
f581e336
...
...
@@ -2,7 +2,7 @@
* libavi.c :
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: libavi.c,v 1.2
8 2003/10/20 17:18:54 gbazin
Exp $
* $Id: libavi.c,v 1.2
9 2003/10/24 12:22:51 fenrir
Exp $
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -118,7 +118,7 @@ static int AVI_ChunkRead_list( stream_t *s, avi_chunk_t *p_container )
uint8_t
*
p_peek
;
vlc_bool_t
b_seekable
;
if
(
p_container
->
common
.
i_chunk_size
<
8
)
if
(
p_container
->
common
.
i_chunk_size
>
0
&&
p_container
->
common
.
i_chunk_size
<
8
)
{
/* empty box */
msg_Warn
(
(
vlc_object_t
*
)
s
,
"empty list chunk"
);
...
...
@@ -171,16 +171,22 @@ static int AVI_ChunkRead_list( stream_t *s, avi_chunk_t *p_container )
}
p_container
->
common
.
p_last
=
p_chk
;
if
(
AVI_ChunkRead
(
s
,
p_chk
,
p_container
)
||
if
(
AVI_ChunkRead
(
s
,
p_chk
,
p_container
)
)
{
break
;
}
if
(
p_chk
->
common
.
p_father
->
common
.
i_chunk_size
>
0
&&
(
stream_Tell
(
s
)
>=
(
off_t
)
p_chk
->
common
.
p_father
->
common
.
i_chunk_pos
+
(
off_t
)
__EVEN
(
p_chk
->
common
.
p_father
->
common
.
i_chunk_size
)
)
)
{
break
;
}
/* If we can't seek then stop when we 've found LIST-movi */
if
(
p_chk
->
common
.
i_chunk_fourcc
==
AVIFOURCC_LIST
&&
p_chk
->
list
.
i_type
==
AVIFOURCC_movi
&&
!
b_seekable
)
p_chk
->
list
.
i_type
==
AVIFOURCC_movi
&&
(
!
b_seekable
||
p_chk
->
common
.
i_chunk_size
==
0
)
)
{
break
;
}
...
...
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