basic autorecovery system added

This commit is contained in:
itsmattkc
2018-06-22 10:24:39 -07:00
parent 38ca51cf10
commit 9c4823e90a
8 changed files with 222 additions and 165 deletions
-1
View File
@@ -87,7 +87,6 @@ void PreviewGenerator::run() {
if (fmt_ctx->streams[packet.stream_index]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
int dstH = 120;
int dstW = dstH * ((float)temp_frame->width/(float)temp_frame->height);
qDebug() << dstW;
uint8_t* data = new uint8_t[dstW*dstH*3];
sws_ctx = sws_getContext(