From ccedda3633219901d6bdbdae33207ce2c0edceff Mon Sep 17 00:00:00 2001 From: wang-bin Date: Wed, 13 Nov 2013 00:47:52 +0800 Subject: [PATCH] fix wrong image convert output size DAMN! --- src/VideoThread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/VideoThread.cpp b/src/VideoThread.cpp index 2793aa1e..f398a25f 100644 --- a/src/VideoThread.cpp +++ b/src/VideoThread.cpp @@ -162,6 +162,7 @@ void VideoThread::run() continue; d.conv->setInFormat(frame.pixelFormatFFmpeg()); d.conv->setInSize(frame.width(), frame.height()); + d.conv->setOutSize(frame.width(), frame.height()); frame.setImageConverter(d.conv); if (d.statistics) { d.statistics->video.current_time = QTime(0, 0, 0).addMSecs(int(pkt.pts * 1000.0)); //TODO: is it expensive?