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
d919fdd4
Commit
d919fdd4
authored
Jul 04, 2014
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not detect jp2 images as mov files.
parent
939d22a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
mov.c
libavformat/mov.c
+3
-1
No files found.
libavformat/mov.c
View file @
d919fdd4
...
...
@@ -3264,7 +3264,6 @@ static int mov_probe(AVProbeData *p)
/* check for obvious tags */
case
MKTAG
(
'm'
,
'o'
,
'o'
,
'v'
):
moov_offset
=
offset
+
4
;
case
MKTAG
(
'j'
,
'P'
,
' '
,
' '
):
/* jpeg 2000 signature */
case
MKTAG
(
'm'
,
'd'
,
'a'
,
't'
):
case
MKTAG
(
'p'
,
'n'
,
'o'
,
't'
):
/* detect movs with preview pics like ew.mov and april.mov */
case
MKTAG
(
'u'
,
'd'
,
't'
,
'a'
):
/* Packet Video PVAuthor adds this and a lot of more junk */
...
...
@@ -3274,6 +3273,9 @@ static int mov_probe(AVProbeData *p)
offset
+
12
>
(
unsigned
int
)
p
->
buf_size
||
AV_RB64
(
p
->
buf
+
offset
+
8
)
==
0
))
{
score
=
FFMAX
(
score
,
AVPROBE_SCORE_EXTENSION
);
}
else
if
(
tag
==
MKTAG
(
'f'
,
't'
,
'y'
,
'p'
)
&&
AV_RL32
(
p
->
buf
+
offset
+
8
)
==
MKTAG
(
'j'
,
'p'
,
'2'
,
' '
))
{
score
=
FFMAX
(
score
,
5
);
}
else
{
score
=
AVPROBE_SCORE_MAX
;
}
...
...
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