mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libx265: Fix use of uninitialized input picture
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
0b9716c455
commit
41836c4e30
@ -182,6 +182,8 @@ static int libx265_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
||||
int ret;
|
||||
int i;
|
||||
|
||||
x265_picture_init(ctx->params, &x265pic);
|
||||
|
||||
if (pic) {
|
||||
for (i = 0; i < 3; i++) {
|
||||
x265pic.planes[i] = pic->data[i];
|
||||
|
Loading…
Reference in New Issue
Block a user