diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2015-01-09 17:58:46 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2015-01-09 17:58:46 +0000 |
commit | 89c0b0782c097fd709d9d3eadff00aeac494b201 (patch) | |
tree | b85943d59f38964a46b00c34234e022936b6e083 /multimedia/mjpegtools | |
parent | 04a50bd1822f471a44171ed6292c328ae9753279 (diff) | |
download | ports-89c0b0782c097fd709d9d3eadff00aeac494b201.tar.gz ports-89c0b0782c097fd709d9d3eadff00aeac494b201.zip |
Notes
Diffstat (limited to 'multimedia/mjpegtools')
-rw-r--r-- | multimedia/mjpegtools/files/patch-yuvdeinterlace_yuvdeinterlace.cc | 33 |
1 files changed, 33 insertions, 0 deletions
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))) + { |