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
23657723
Commit
23657723
authored
Feb 28, 2017
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mov: Ignore old spherical metadata when newer version is present
parent
17adcc40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mov.c
libavformat/mov.c
+3
-2
No files found.
libavformat/mov.c
View file @
23657723
...
@@ -3335,7 +3335,8 @@ static int mov_parse_uuid_spherical(MOVStreamContext *sc, AVIOContext *pb, size_
...
@@ -3335,7 +3335,8 @@ static int mov_parse_uuid_spherical(MOVStreamContext *sc, AVIOContext *pb, size_
goto
out
;
goto
out
;
/* Check for mandatory keys and values, try to support XML as best-effort */
/* Check for mandatory keys and values, try to support XML as best-effort */
if
(
av_stristr
(
buffer
,
"<GSpherical:StitchingSoftware>"
)
&&
if
(
!
sc
->
spherical
&&
av_stristr
(
buffer
,
"<GSpherical:StitchingSoftware>"
)
&&
(
val
=
av_stristr
(
buffer
,
"<GSpherical:Spherical>"
))
&&
(
val
=
av_stristr
(
buffer
,
"<GSpherical:Spherical>"
))
&&
av_stristr
(
val
,
"true"
)
&&
av_stristr
(
val
,
"true"
)
&&
(
val
=
av_stristr
(
buffer
,
"<GSpherical:Stitched>"
))
&&
(
val
=
av_stristr
(
buffer
,
"<GSpherical:Stitched>"
))
&&
...
@@ -3348,7 +3349,7 @@ static int mov_parse_uuid_spherical(MOVStreamContext *sc, AVIOContext *pb, size_
...
@@ -3348,7 +3349,7 @@ static int mov_parse_uuid_spherical(MOVStreamContext *sc, AVIOContext *pb, size_
sc
->
spherical
->
projection
=
AV_SPHERICAL_EQUIRECTANGULAR
;
sc
->
spherical
->
projection
=
AV_SPHERICAL_EQUIRECTANGULAR
;
if
(
av_stristr
(
buffer
,
"<GSpherical:StereoMode>"
))
{
if
(
av_stristr
(
buffer
,
"<GSpherical:StereoMode>"
)
&&
!
sc
->
stereo3d
)
{
enum
AVStereo3DType
mode
;
enum
AVStereo3DType
mode
;
if
(
av_stristr
(
buffer
,
"left-right"
))
if
(
av_stristr
(
buffer
,
"left-right"
))
...
...
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