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
cdc0d578
Commit
cdc0d578
authored
Mar 28, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix type punnig breakage
(manually backported from
39237808
)
parent
157d370a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+3
-1
No files found.
modules/demux/mp4/libmp4.c
View file @
cdc0d578
...
...
@@ -1173,10 +1173,12 @@ static int MP4_ReadBox_sample_soun( stream_t *p_stream, MP4_Box_t *p_box )
{
/* SoundDescriptionV2 */
double
f_sample_rate
;
int64_t
dummy
;
uint32_t
i_channel
;
MP4_GET4BYTES
(
p_box
->
data
.
p_sample_soun
->
i_sample_per_packet
);
MP4_GET8BYTES
(
(
*
(
int64_t
*
)
&
f_sample_rate
)
);
MP4_GET8BYTES
(
dummy
);
memcpy
(
&
f_sample_rate
,
&
dummy
,
8
);
msg_Dbg
(
p_stream
,
"read box: %f Hz"
,
f_sample_rate
);
p_box
->
data
.
p_sample_soun
->
i_sampleratehi
=
(
int
)
f_sample_rate
%
65536
;
...
...
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