openbsd-ports/graphics/ffmpegthumbnailer/patches/patch-libffmpegthumbnailer_pngwriter_cpp
naddy eed7c62887 Fix build with png-1.5.
All fixes by yours truly.
2011-07-08 20:38:00 +00:00

16 lines
540 B
Plaintext

$OpenBSD: patch-libffmpegthumbnailer_pngwriter_cpp,v 1.1 2011/07/08 20:38:01 naddy Exp $
Fix build with png-1.5.
--- libffmpegthumbnailer/pngwriter.cpp.orig Tue Jul 5 17:36:44 2011
+++ libffmpegthumbnailer/pngwriter.cpp Tue Jul 5 17:37:03 2011
@@ -49,7 +49,7 @@ PngWriter::PngWriter(std::vector<uint8_t>& outputBuffe
, m_InfoPtr(NULL)
{
init();
- png_set_write_fn(m_PngPtr, (voidp) &outputBuffer, writeDataCallback, NULL);
+ png_set_write_fn(m_PngPtr, &outputBuffer, writeDataCallback, NULL);
}
PngWriter::~PngWriter()