mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
libx265: Fix use of uninitialized input picture
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
e87974bc00
commit
955544e4d0
@ -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