Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ac8c72f8
Commit
ac8c72f8
authored
Mar 07, 2017
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mov: Fix checking layout and loading padding for cubemaps
parent
1afd2469
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
mov.c
libavformat/mov.c
+7
-1
No files found.
libavformat/mov.c
View file @
ac8c72f8
...
...
@@ -4635,7 +4635,7 @@ static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream
*
st
;
MOVStreamContext
*
sc
;
int
size
;
int
size
,
layout
;
int32_t
yaw
,
pitch
,
roll
;
size_t
l
=
0
,
t
=
0
,
r
=
0
,
b
=
0
;
size_t
padding
=
0
;
...
...
@@ -4699,6 +4699,12 @@ static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom)
avio_skip
(
pb
,
4
);
/* version + flags */
switch
(
tag
)
{
case
MKTAG
(
'c'
,
'b'
,
'm'
,
'p'
):
layout
=
avio_rb32
(
pb
);
if
(
layout
)
{
av_log
(
c
->
fc
,
AV_LOG_WARNING
,
"Unsupported cubemap layout %d
\n
"
,
layout
);
return
0
;
}
projection
=
AV_SPHERICAL_CUBEMAP
;
padding
=
avio_rb32
(
pb
);
break
;
...
...
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