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
af0ac19f
Commit
af0ac19f
authored
Oct 07, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for AVI with out of spec idx1 index.
It closes #5389.
parent
96deda44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+6
-1
No files found.
modules/demux/avi/avi.c
View file @
af0ac19f
...
...
@@ -95,6 +95,8 @@ static char *FromACP( const char *str )
return
FromCharset
(
vlc_pgettext
(
"GetACP"
,
"CP1252"
),
str
,
strlen
(
str
));
}
#define IGNORE_ES NAV_ES
typedef
struct
{
vlc_fourcc_t
i_fourcc
;
...
...
@@ -1951,6 +1953,9 @@ static void AVI_ParseStreamHeader( vlc_fourcc_t i_id,
case
AVITWOCC_sb
:
SET_PTR
(
pi_type
,
SPU_ES
);
break
;
case
AVITWOCC_pc
:
SET_PTR
(
pi_type
,
IGNORE_ES
);
break
;
default:
SET_PTR
(
pi_type
,
UNKNOWN_ES
);
break
;
...
...
@@ -2181,7 +2186,7 @@ static int AVI_IndexLoad_idx1( demux_t *p_demux,
&
i_stream
,
&
i_cat
);
if
(
i_stream
<
p_sys
->
i_track
&&
i_cat
==
p_sys
->
track
[
i_stream
]
->
i_cat
)
(
i_cat
==
p_sys
->
track
[
i_stream
]
->
i_cat
||
i_cat
==
UNKNOWN_ES
)
)
{
avi_entry_t
index
;
index
.
i_id
=
p_idx1
->
entry
[
i_index
].
i_fourcc
;
...
...
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