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
5b24b0b6
Commit
5b24b0b6
authored
Apr 04, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: use define for block size
parent
2f0a363d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+5
-5
modules/demux/mp4/libmp4.h
modules/demux/mp4/libmp4.h
+2
-0
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+2
-2
No files found.
modules/demux/mp4/libmp4.c
View file @
5b24b0b6
...
...
@@ -838,8 +838,8 @@ static int MP4_ReadBox_tkhd( stream_t *p_stream, MP4_Box_t *p_box )
scale
[
1
],
translate
[
0
],
translate
[
1
],
(
float
)
p_box
->
data
.
p_tkhd
->
i_width
/
6553
6
,
(
float
)
p_box
->
data
.
p_tkhd
->
i_height
/
6553
6
,
(
float
)
p_box
->
data
.
p_tkhd
->
i_width
/
BLOCK16x1
6
,
(
float
)
p_box
->
data
.
p_tkhd
->
i_height
/
BLOCK16x1
6
,
p_box
->
data
.
p_tkhd
->
i_matrix
[
0
],
p_box
->
data
.
p_tkhd
->
i_matrix
[
1
],
p_box
->
data
.
p_tkhd
->
i_matrix
[
2
],
...
...
@@ -1665,8 +1665,8 @@ static int MP4_ReadBox_sample_soun( stream_t *p_stream, MP4_Box_t *p_box )
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
%
6553
6
;
p_box
->
data
.
p_sample_soun
->
i_sampleratelo
=
f_sample_rate
/
6553
6
;
p_box
->
data
.
p_sample_soun
->
i_sampleratehi
=
(
int
)
f_sample_rate
%
BLOCK16x1
6
;
p_box
->
data
.
p_sample_soun
->
i_sampleratelo
=
f_sample_rate
/
BLOCK16x1
6
;
MP4_GET4BYTES
(
i_channel
);
p_box
->
data
.
p_sample_soun
->
i_channelcount
=
i_channel
;
...
...
@@ -1712,7 +1712,7 @@ static int MP4_ReadBox_sample_soun( stream_t *p_stream, MP4_Box_t *p_box )
p_box
->
data
.
p_sample_soun
->
i_channelcount
,
p_box
->
data
.
p_sample_soun
->
i_samplesize
,
(
float
)
p_box
->
data
.
p_sample_soun
->
i_sampleratehi
+
(
float
)
p_box
->
data
.
p_sample_soun
->
i_sampleratelo
/
6553
6
);
(
float
)
p_box
->
data
.
p_sample_soun
->
i_sampleratelo
/
BLOCK16x1
6
);
#endif
MP4_READBOX_EXIT
(
1
);
...
...
modules/demux/mp4/libmp4.h
View file @
5b24b0b6
...
...
@@ -25,6 +25,8 @@
#include <vlc_es.h>
#define BLOCK16x16 (1<<16)
#define ATOM_root VLC_FOURCC( 'r', 'o', 'o', 't' )
#define ATOM_uuid VLC_FOURCC( 'u', 'u', 'i', 'd' )
...
...
modules/demux/mp4/mp4.c
View file @
5b24b0b6
...
...
@@ -2607,8 +2607,8 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
p_track
->
i_track_ID
=
p_tkhd
->
data
.
p_tkhd
->
i_track_ID
;
p_track
->
i_width
=
p_tkhd
->
data
.
p_tkhd
->
i_width
/
6553
6
;
p_track
->
i_height
=
p_tkhd
->
data
.
p_tkhd
->
i_height
/
6553
6
;
p_track
->
i_width
=
p_tkhd
->
data
.
p_tkhd
->
i_width
/
BLOCK16x1
6
;
p_track
->
i_height
=
p_tkhd
->
data
.
p_tkhd
->
i_height
/
BLOCK16x1
6
;
p_track
->
f_rotation
=
p_tkhd
->
data
.
p_tkhd
->
f_rotation
;
if
(
p_tref
)
...
...
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