浏览代码

removed some errors

Nicolas Winkler 6 年之前
父节点
当前提交
a78dcc1ddc
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      VideoStream.cpp
  2. 1 1
      libmandel/src/mandel.cpp

+ 2 - 2
VideoStream.cpp

@@ -134,7 +134,7 @@ void VideoStream::addFrame(const Bitmap<RGBColor>& frame)
     }*/
 
     const uint8_t* pixelPointer[] = { reinterpret_cast<const uint8_t*>(frame.pixels.get()), 0 };
-    const int linesizeIn[] = { frame.width * sizeof(RGBColor) };
+    const int linesizeIn[] = { int(frame.width * sizeof(RGBColor)) };
 
     sws_scale(swsContext, pixelPointer, linesizeIn, 0,
         frame.height, picture->data, picture->linesize);
@@ -143,4 +143,4 @@ void VideoStream::addFrame(const Bitmap<RGBColor>& frame)
 
     /* encode the image */
     encode(codecContext, picture, pkt, file);
-}
+}

+ 1 - 1
libmandel/src/mandel.cpp

@@ -138,4 +138,4 @@ Generator& MandelContext::getCpuGeneratorFloat(void)
 Generator& MandelContext::getCpuGeneratorDouble(void)
 {
     return *cpuGeneratorDouble;
-}
+}