From 89c0b0782c097fd709d9d3eadff00aeac494b201 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Fri, 9 Jan 2015 17:58:46 +0000 Subject: Allow building with libc++ r224926 PR: ports/196629 Submitted by: dim@ --- .../files/patch-yuvdeinterlace_yuvdeinterlace.cc | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 multimedia/mjpegtools/files/patch-yuvdeinterlace_yuvdeinterlace.cc (limited to 'multimedia/mjpegtools') diff --git a/multimedia/mjpegtools/files/patch-yuvdeinterlace_yuvdeinterlace.cc b/multimedia/mjpegtools/files/patch-yuvdeinterlace_yuvdeinterlace.cc new file mode 100644 index 000000000000..728665a72f9f --- /dev/null +++ b/multimedia/mjpegtools/files/patch-yuvdeinterlace_yuvdeinterlace.cc @@ -0,0 +1,33 @@ +--- yuvdeinterlace/yuvdeinterlace.cc.orig 2009-09-19 18:16:47 UTC ++++ yuvdeinterlace/yuvdeinterlace.cc +@@ -918,7 +918,7 @@ int + main (int argc, char *argv[]) + { + int frame = 0; +- int errno = 0; ++ int error = 0; + int ss_h, ss_v; + + deinterlacer YUVdeint; +@@ -1009,10 +1009,10 @@ main (int argc, char *argv[]) + y4m_init_frame_info (&YUVdeint.Y4MStream.oframeinfo); + + /* open input stream */ +- if ((errno = y4m_read_stream_header (YUVdeint.Y4MStream.fd_in, ++ if ((error = y4m_read_stream_header (YUVdeint.Y4MStream.fd_in, + &YUVdeint.Y4MStream.istreaminfo)) != Y4M_OK) + { +- mjpeg_error_exit1 ("Couldn't read YUV4MPEG header: %s!", y4m_strerr (errno)); ++ mjpeg_error_exit1 ("Couldn't read YUV4MPEG header: %s!", y4m_strerr (error)); + } + + /* get format information */ +@@ -1089,7 +1089,7 @@ main (int argc, char *argv[]) + y4m_write_stream_header (YUVdeint.Y4MStream.fd_out, &YUVdeint.Y4MStream.ostreaminfo); + + /* read every frame until the end of the input stream and process it */ +- while (Y4M_OK == (errno = y4m_read_frame (YUVdeint.Y4MStream.fd_in, ++ while (Y4M_OK == (error = y4m_read_frame (YUVdeint.Y4MStream.fd_in, + &YUVdeint.Y4MStream.istreaminfo, + &YUVdeint.Y4MStream.iframeinfo, YUVdeint.inframe))) + { -- cgit v1.2.3