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
46d65fb8
Commit
46d65fb8
authored
Dec 21, 2011
by
Tomas Härdin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxfdec: Sanity check PreviousPartition
Without this certain files could get the demuxer stuck in a loop
parent
e7839602
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mxfdec.c
libavformat/mxfdec.c
+7
-0
No files found.
libavformat/mxfdec.c
View file @
46d65fb8
...
...
@@ -479,6 +479,13 @@ static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size
partition
->
previous_partition
,
footer_partition
,
partition
->
index_sid
,
partition
->
body_sid
);
/* sanity check PreviousPartition if set */
if
(
partition
->
previous_partition
&&
mxf
->
run_in
+
partition
->
previous_partition
>=
klv_offset
)
{
av_log
(
mxf
->
fc
,
AV_LOG_ERROR
,
"PreviousPartition points to this partition or forward
\n
"
);
return
AVERROR_INVALIDDATA
;
}
if
(
op
[
12
]
==
1
&&
op
[
13
]
==
1
)
mxf
->
op
=
OP1a
;
else
if
(
op
[
12
]
==
1
&&
op
[
13
]
==
2
)
mxf
->
op
=
OP1b
;
else
if
(
op
[
12
]
==
1
&&
op
[
13
]
==
3
)
mxf
->
op
=
OP1c
;
...
...
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