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
275cc553
Commit
275cc553
authored
Jun 07, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* avi: support for track without key flag set in the index.
parent
07a75708
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
modules/demux/avi/avi.c
modules/demux/avi/avi.c
+21
-0
No files found.
modules/demux/avi/avi.c
View file @
275cc553
...
...
@@ -1928,6 +1928,8 @@ static int AVI_IndexLoad_idx1( demux_t *p_demux )
off_t
i_offset
;
unsigned
int
i
;
vlc_bool_t
b_keyset
[
100
];
p_riff
=
AVI_ChunkFind
(
&
p_sys
->
ck_root
,
AVIFOURCC_RIFF
,
0
);
p_idx1
=
AVI_ChunkFind
(
p_riff
,
AVIFOURCC_idx1
,
0
);
p_movi
=
AVI_ChunkFind
(
p_riff
,
AVIFOURCC_movi
,
0
);
...
...
@@ -1951,6 +1953,10 @@ static int AVI_IndexLoad_idx1( demux_t *p_demux )
}
}
/* Reset b_keyset */
for
(
i_stream
=
0
;
i_stream
<
p_sys
->
i_track
;
i_stream
++
)
b_keyset
[
i_stream
]
=
VLC_FALSE
;
for
(
i_index
=
0
;
i_index
<
p_idx1
->
i_entry_count
;
i_index
++
)
{
unsigned
int
i_cat
;
...
...
@@ -1968,6 +1974,21 @@ static int AVI_IndexLoad_idx1( demux_t *p_demux )
index
.
i_pos
=
p_idx1
->
entry
[
i_index
].
i_pos
+
i_offset
;
index
.
i_length
=
p_idx1
->
entry
[
i_index
].
i_length
;
AVI_IndexAddEntry
(
p_sys
,
i_stream
,
&
index
);
if
(
index
.
i_flags
&
AVIIF_KEYFRAME
)
b_keyset
[
i_stream
]
=
VLC_TRUE
;
}
}
for
(
i_stream
=
0
;
i_stream
<
p_sys
->
i_track
;
i_stream
++
)
{
if
(
!
b_keyset
[
i_stream
]
)
{
avi_track_t
*
tk
=
p_sys
->
track
[
i_stream
];
msg_Dbg
(
p_demux
,
"no key frame set for track %d"
,
i_stream
);
for
(
i_index
=
0
;
i_index
<
tk
->
i_idxnb
;
i_index
++
)
tk
->
p_index
[
i_index
].
i_flags
|=
AVIIF_KEYFRAME
;
}
}
return
VLC_SUCCESS
;
...
...
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