Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5d39e77b
Commit
5d39e77b
authored
May 24, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AVI: parse dmlh chunk
parent
e8f45e69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
modules/demux/avi/libavi.c
modules/demux/avi/libavi.c
+16
-0
modules/demux/avi/libavi.h
modules/demux/avi/libavi.h
+7
-0
No files found.
modules/demux/avi/libavi.c
View file @
5d39e77b
...
@@ -613,6 +613,21 @@ static int AVI_ChunkRead_vprp( stream_t *s, avi_chunk_t *p_chk )
...
@@ -613,6 +613,21 @@ static int AVI_ChunkRead_vprp( stream_t *s, avi_chunk_t *p_chk )
AVI_READCHUNK_EXIT
(
VLC_SUCCESS
);
AVI_READCHUNK_EXIT
(
VLC_SUCCESS
);
}
}
static
int
AVI_ChunkRead_dmlh
(
stream_t
*
s
,
avi_chunk_t
*
p_chk
)
{
avi_chunk_dmlh_t
*
p_dmlh
=
(
avi_chunk_dmlh_t
*
)
p_chk
;
AVI_READCHUNK_ENTER
;
AVI_READ4BYTES
(
p_dmlh
->
dwTotalFrames
);
#ifdef AVI_DEBUG
msg_Dbg
(
(
vlc_object_t
*
)
s
,
"dmlh: dwTotalFrames %d"
,
p_dmlh
->
dwTotalFrames
);
#endif
AVI_READCHUNK_EXIT
(
VLC_SUCCESS
);
}
static
const
struct
static
const
struct
{
{
vlc_fourcc_t
i_fourcc
;
vlc_fourcc_t
i_fourcc
;
...
@@ -724,6 +739,7 @@ static const struct
...
@@ -724,6 +739,7 @@ static const struct
{
AVIFOURCC_indx
,
AVI_ChunkRead_indx
,
AVI_ChunkFree_indx
},
{
AVIFOURCC_indx
,
AVI_ChunkRead_indx
,
AVI_ChunkFree_indx
},
{
AVIFOURCC_vprp
,
AVI_ChunkRead_vprp
,
AVI_ChunkFree_nothing
},
{
AVIFOURCC_vprp
,
AVI_ChunkRead_vprp
,
AVI_ChunkFree_nothing
},
{
AVIFOURCC_JUNK
,
AVI_ChunkRead_nothing
,
AVI_ChunkFree_nothing
},
{
AVIFOURCC_JUNK
,
AVI_ChunkRead_nothing
,
AVI_ChunkFree_nothing
},
{
AVIFOURCC_dmlh
,
AVI_ChunkRead_dmlh
,
AVI_ChunkFree_nothing
},
{
AVIFOURCC_IARL
,
AVI_ChunkRead_strz
,
AVI_ChunkFree_strz
},
{
AVIFOURCC_IARL
,
AVI_ChunkRead_strz
,
AVI_ChunkFree_strz
},
{
AVIFOURCC_IART
,
AVI_ChunkRead_strz
,
AVI_ChunkFree_strz
},
{
AVIFOURCC_IART
,
AVI_ChunkRead_strz
,
AVI_ChunkFree_strz
},
...
...
modules/demux/avi/libavi.h
View file @
5d39e77b
...
@@ -171,6 +171,12 @@ typedef struct avi_chunk_vprp_s
...
@@ -171,6 +171,12 @@ typedef struct avi_chunk_vprp_s
}
avi_chunk_vprp_t
;
}
avi_chunk_vprp_t
;
typedef
struct
avi_chunk_dmlh_s
{
AVI_CHUNK_COMMON
uint32_t
dwTotalFrames
;
}
avi_chunk_dmlh_t
;
#define AVI_INDEX_OF_INDEXES 0x00
#define AVI_INDEX_OF_INDEXES 0x00
#define AVI_INDEX_OF_CHUNKS 0x01
#define AVI_INDEX_OF_CHUNKS 0x01
...
@@ -281,6 +287,7 @@ void AVI_ChunkFreeRoot( stream_t *, avi_chunk_t *p_chk );
...
@@ -281,6 +287,7 @@ void AVI_ChunkFreeRoot( stream_t *, avi_chunk_t *p_chk );
#define AVIFOURCC_strn VLC_FOURCC('s','t','r','n')
#define AVIFOURCC_strn VLC_FOURCC('s','t','r','n')
#define AVIFOURCC_indx VLC_FOURCC('i','n','d','x')
#define AVIFOURCC_indx VLC_FOURCC('i','n','d','x')
#define AVIFOURCC_vprp VLC_FOURCC('v','p','r','p')
#define AVIFOURCC_vprp VLC_FOURCC('v','p','r','p')
#define AVIFOURCC_dmlh VLC_FOURCC('d','m','l','h')
#define AVIFOURCC_rec VLC_FOURCC('r','e','c',' ')
#define AVIFOURCC_rec VLC_FOURCC('r','e','c',' ')
#define AVIFOURCC_auds VLC_FOURCC('a','u','d','s')
#define AVIFOURCC_auds VLC_FOURCC('a','u','d','s')
...
...
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