From b1adef2fd0b9aeef58cea34c6637b8cd3f6e16a8 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Sat, 23 Jul 2016 03:56:00 +0300 Subject: [PATCH] fix(corevideosource): Partial revert of ef641ce6d3398792c10b30bf24a81c5a6005fe06 Fixes crash, during video call with "None" video device. Fixes #3527. --- src/video/corevideosource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/corevideosource.cpp b/src/video/corevideosource.cpp index cac6ce382..5ca2df2c0 100644 --- a/src/video/corevideosource.cpp +++ b/src/video/corevideosource.cpp @@ -59,6 +59,7 @@ void CoreVideoSource::pushFrame(const vpx_image_t* vpxframe) av_frame_free(&avframe); return; } + avframe->opaque = buf; uint8_t** data = avframe->data; int* linesize = avframe->linesize; @@ -81,7 +82,6 @@ void CoreVideoSource::pushFrame(const vpx_image_t* vpxframe) vframe = std::make_shared(avframe); - av_free(buf); emit frameAvailable(vframe); }