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
0e7ed04d
Commit
0e7ed04d
authored
Oct 11, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Boundary check
parent
a8907dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
modules/demux/smf.c
modules/demux/smf.c
+11
-6
No files found.
modules/demux/smf.c
View file @
0e7ed04d
...
...
@@ -263,6 +263,7 @@ int HandleMeta (demux_t *p_demux, mtrk_t *tr)
uint8_t
*
payload
;
uint8_t
type
;
int32_t
length
;
int
ret
=
0
;
if
(
stream_Read
(
s
,
&
type
,
1
)
!=
1
)
return
-
1
;
...
...
@@ -333,17 +334,21 @@ int HandleMeta (demux_t *p_demux, mtrk_t *tr)
if
(
tr
->
end
!=
stream_Tell
(
s
))
{
msg_Err
(
p_demux
,
"misplaced end of track"
);
stream_Seek
(
s
,
tr
->
end
)
;
ret
=
-
1
;
}
break
;
case
0x51
:
/* Tempo */
{
uint32_t
tempo
=
(
payload
[
0
]
<<
16
)
|
(
payload
[
1
]
<<
8
)
|
payload
[
2
];
/* FIXME: change date */
msg_Dbg
(
p_demux
,
"new tempo: %u"
,
(
unsigned
)
tempo
);
if
(
length
==
3
)
{
uint32_t
tempo
=
(
payload
[
0
]
<<
16
)
|
(
payload
[
1
]
<<
8
)
|
payload
[
2
];
/* FIXME: change date */
msg_Dbg
(
p_demux
,
"new tempo: %u"
,
(
unsigned
)
tempo
);
}
else
ret
=
-
1
;
break
;
}
case
0x54
:
/* SMPTE offset */
case
0x58
:
/* Time signature */
...
...
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