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
fa190b3c
Commit
fa190b3c
authored
Oct 21, 2012
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve MPEG-PS-in-MOV detection.
Fixes issue 1520.
parent
747a00b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
mov.c
libavformat/mov.c
+8
-9
No files found.
libavformat/mov.c
View file @
fa190b3c
...
@@ -2908,15 +2908,14 @@ static int mov_probe(AVProbeData *p)
...
@@ -2908,15 +2908,14 @@ static int mov_probe(AVProbeData *p)
* MOV-packed MPEG-PS */
* MOV-packed MPEG-PS */
offset
=
moov_offset
;
offset
=
moov_offset
;
while
(
offset
<
(
p
->
buf_size
-
20
)){
/* Sufficient space */
while
(
offset
<
(
p
->
buf_size
-
16
)){
/* Sufficient space */
/* We found an actual stsd atom */
/* We found an actual hdlr atom */
if
(
AV_RL32
(
p
->
buf
+
offset
)
==
MKTAG
(
's'
,
't'
,
's'
,
'd'
)
&&
if
(
AV_RL32
(
p
->
buf
+
offset
)
==
MKTAG
(
'h'
,
'd'
,
'l'
,
'r'
)
&&
/* Make sure there's only one stream */
AV_RL32
(
p
->
buf
+
offset
+
8
)
==
MKTAG
(
'm'
,
'h'
,
'l'
,
'r'
)
&&
AV_RB32
(
p
->
buf
+
offset
+
8
)
==
1
&&
AV_RL32
(
p
->
buf
+
offset
+
12
)
==
MKTAG
(
'M'
,
'P'
,
'E'
,
'G'
)){
AV_RL32
(
p
->
buf
+
offset
+
16
)
==
MKTAG
(
'm'
,
'1'
,
's'
,
' '
)
av_log
(
NULL
,
AV_LOG_WARNING
,
"Found media data tag MPEG indicating this is a MOV-packed MPEG-PS.
\n
"
);
){
/* We found a media handler reference atom describing an
av_log
(
NULL
,
AV_LOG_WARNING
,
"Found m1s tag indicating this is a MOV-packed MPEG-PS.
\n
"
);
* MPEG-PS-in-MOV, return a
/* We found an stsd atom describing an MPEG-PS-in-MOV, return a
* low score to force expanding the probe window until
* low score to force expanding the probe window until
* mpegps_probe finds what it needs */
* mpegps_probe finds what it needs */
return
5
;
return
5
;
...
...
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