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
b420fead
Commit
b420fead
authored
Jul 06, 2018
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mxfdec: only call mxf_free_metadataset when ctx_size is != 0, otherwise ctx == mxf
parent
1809f1cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mxfdec.c
libavformat/mxfdec.c
+3
-2
No files found.
libavformat/mxfdec.c
View file @
b420fead
...
...
@@ -2631,7 +2631,8 @@ static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, MXFMetadataReadF
if
(
ctx_size
&&
tag
==
0x3C0A
)
{
avio_read
(
pb
,
ctx
->
uid
,
16
);
}
else
if
((
ret
=
read_child
(
ctx
,
pb
,
tag
,
size
,
uid
,
-
1
))
<
0
)
{
mxf_free_metadataset
(
&
ctx
,
!!
ctx_size
);
if
(
ctx_size
)
mxf_free_metadataset
(
&
ctx
,
1
);
return
ret
;
}
...
...
@@ -2640,7 +2641,7 @@ static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, MXFMetadataReadF
if
(
avio_tell
(
pb
)
>
klv_end
)
{
if
(
ctx_size
)
{
ctx
->
type
=
type
;
mxf_free_metadataset
(
&
ctx
,
!!
ctx_size
);
mxf_free_metadataset
(
&
ctx
,
1
);
}
av_log
(
mxf
->
fc
,
AV_LOG_ERROR
,
...
...
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