Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ad26976e
Commit
ad26976e
authored
Jun 12, 2013
by
Rémi Denis-Courmont
Browse files
avcodec: missing error handling (refs #8792)
parent
ebdde620
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/avcodec/encoder.c
View file @
ad26976e
...
...
@@ -926,6 +926,8 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
p_enc
->
fmt_out
.
video
.
i_bits_per_pixel
/
8
:
3
;
const
int
blocksize
=
__MAX
(
FF_MIN_BUFFER_SIZE
,
bytesPerPixel
*
p_sys
->
p_context
->
height
*
p_sys
->
p_context
->
width
+
200
);
block_t
*
p_block
=
block_Alloc
(
blocksize
);
if
(
unlikely
(
p_block
==
NULL
)
)
return
NULL
;
#if (LIBAVCODEC_VERSION_MAJOR >= 54)
AVPacket
av_pkt
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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