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
f45d5e07
Commit
f45d5e07
authored
Oct 18, 2016
by
Aman Gupta
Committed by
Rick Kern
Oct 18, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/videotoolboxenc: skip SEI allocation when side data is not present
Signed-off-by:
Rick Kern
<
kernrj@gmail.com
>
parent
47ee6f1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
videotoolboxenc.c
libavcodec/videotoolboxenc.c
+3
-1
No files found.
libavcodec/videotoolboxenc.c
View file @
f45d5e07
...
...
@@ -2019,6 +2019,7 @@ static int vtenc_send_frame(AVCodecContext *avctx,
CMTime
time
;
CFDictionaryRef
frame_dict
;
CVPixelBufferRef
cv_img
=
NULL
;
AVFrameSideData
*
side_data
=
NULL
;
ExtraSEI
*
sei
=
NULL
;
int
status
=
create_cv_pixel_buffer
(
avctx
,
frame
,
&
cv_img
);
...
...
@@ -2030,7 +2031,8 @@ static int vtenc_send_frame(AVCodecContext *avctx,
return
status
;
}
if
(
vtctx
->
a53_cc
)
{
side_data
=
av_frame_get_side_data
(
frame
,
AV_FRAME_DATA_A53_CC
);
if
(
vtctx
->
a53_cc
&&
side_data
&&
side_data
->
size
)
{
sei
=
av_mallocz
(
sizeof
(
*
sei
));
if
(
!
sei
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Not enough memory for closed captions, skipping
\n
"
);
...
...
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