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
ba32c8df
Commit
ba32c8df
authored
Aug 01, 2006
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip run-in sequence during probe
Originally committed as revision 5876 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
eb9ab583
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
mxf.c
libavformat/mxf.c
+10
-5
No files found.
libavformat/mxf.c
View file @
ba32c8df
...
...
@@ -919,14 +919,19 @@ static int mxf_read_close(AVFormatContext *s)
}
static
int
mxf_probe
(
AVProbeData
*
p
)
{
/* KLV packet describing MXF header partition pack */
uint8_t
*
bufp
=
p
->
buf
;
uint8_t
*
end
=
p
->
buf
+
p
->
buf_size
;
if
(
p
->
buf_size
<
sizeof
(
mxf_header_partition_pack_key
))
return
0
;
if
(
IS_KLV_KEY
(
p
->
buf
,
mxf_header_partition_pack_key
))
return
AVPROBE_SCORE_MAX
;
else
return
0
;
/* Must skip Run-In Sequence and search for MXF header partition pack key SMPTE 377M 5.5 */
end
-=
sizeof
(
mxf_header_partition_pack_key
);
for
(;
bufp
<
end
;
bufp
++
)
{
if
(
IS_KLV_KEY
(
bufp
,
mxf_header_partition_pack_key
))
return
AVPROBE_SCORE_MAX
;
}
return
0
;
}
...
...
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