svn commit: r452524 - head/x11-toolkits/nucleo/files
Jan Beich
jbeich at FreeBSD.org
Fri Oct 20 14:13:31 UTC 2017
Author: jbeich
Date: Fri Oct 20 14:13:29 2017
New Revision: 452524
URL: https://svnweb.freebsd.org/changeset/ports/452524
Log:
x11-toolkits/nucleo: unbreak FFMPEG=on with Clang 4.0
ffmpegImageSink.cxx:246:29: error: ordered comparison between pointer and zero ('AVIOContext *' and 'int')
0, udp_callback, 0) < 0) {
~~~~~~~~~~~~~~~~~~~ ^ ~
Reported by: antoine (via bug 223057 exp-run)
Modified:
head/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx (contents, props changed)
Modified: head/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx
==============================================================================
--- head/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx Fri Oct 20 14:13:15 2017 (r452523)
+++ head/x11-toolkits/nucleo/files/patch-nucleo__plugins__ffmpeg__ffmpegImageSink.cxx Fri Oct 20 14:13:29 2017 (r452524)
@@ -87,7 +87,8 @@
- if (init_put_byte(format_context->pb, buffer, buffer_size,
+ if (avio_alloc_context(buffer, buffer_size,
1, (void *)this,
- 0, udp_callback, 0) < 0) {
+- 0, udp_callback, 0) < 0) {
++ 0, udp_callback, 0) == NULL) {
std::cerr << "ffmpegImageSink: init_put_byte failed" << std::endl ;
return false ;
}
More information about the svn-ports-head
mailing list