[FFmpeg-cvslog] libx265: Fix use of uninitialized input picture
Derek Buitenhuis
git at videolan.org
Fri Feb 14 21:36:06 CET 2014
ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Thu Feb 13 20:49:05 2014 +0000| [41836c4e306e572ecf80d5a714aaec532c7ece60] | committer: Derek Buitenhuis
libx265: Fix use of uninitialized input picture
Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=41836c4e306e572ecf80d5a714aaec532c7ece60
---
libavcodec/libx265.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c
index e63e0cb..05ed143 100644
--- a/libavcodec/libx265.c
+++ b/libavcodec/libx265.c
@@ -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];
More information about the ffmpeg-cvslog
mailing list