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
1c49365c
Commit
1c49365c
authored
Mar 19, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_metadata: Fix memory leak on multiple display orientation messages
Fixes CID #1430176.
parent
e5b4cd4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
h264_metadata_bsf.c
libavcodec/h264_metadata_bsf.c
+4
-0
No files found.
libavcodec/h264_metadata_bsf.c
View file @
1c49365c
...
@@ -437,6 +437,10 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out)
...
@@ -437,6 +437,10 @@ static int h264_metadata_filter(AVBSFContext *bsf, AVPacket *out)
180
.
0
/
65536
.
0
);
180
.
0
/
65536
.
0
);
av_display_matrix_flip
(
matrix
,
disp
->
hor_flip
,
disp
->
ver_flip
);
av_display_matrix_flip
(
matrix
,
disp
->
hor_flip
,
disp
->
ver_flip
);
// If there are multiple display orientation messages in an
// access unit then ignore all but the last one.
av_freep
(
&
displaymatrix_side_data
);
displaymatrix_side_data
=
(
uint8_t
*
)
matrix
;
displaymatrix_side_data
=
(
uint8_t
*
)
matrix
;
displaymatrix_side_data_size
=
9
*
sizeof
(
int32_t
);
displaymatrix_side_data_size
=
9
*
sizeof
(
int32_t
);
}
}
...
...
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