View | Details | Raw Unified | Return to bug 196629
Collapse All | Expand All

(-)multimedia/mjpegtools/files/patch-yuvdeinterlace__yuvdeinterlace.cc (+33 lines)
Line 0 Link Here
1
--- yuvdeinterlace/yuvdeinterlace.cc.orig	2009-09-19 20:16:47.000000000 +0200
2
+++ yuvdeinterlace/yuvdeinterlace.cc	2015-01-09 00:14:30.000000000 +0100
3
@@ -918,7 +918,7 @@ int
4
 main (int argc, char *argv[])
5
 {
6
   int frame = 0;
7
-  int errno = 0;
8
+  int error = 0;
9
   int ss_h, ss_v;
10
 
11
   deinterlacer YUVdeint;
12
@@ -1009,10 +1009,10 @@ main (int argc, char *argv[])
13
   y4m_init_frame_info (&YUVdeint.Y4MStream.oframeinfo);
14
 
15
 /* open input stream */
16
-  if ((errno = y4m_read_stream_header (YUVdeint.Y4MStream.fd_in,
17
+  if ((error = y4m_read_stream_header (YUVdeint.Y4MStream.fd_in,
18
 				       &YUVdeint.Y4MStream.istreaminfo)) != Y4M_OK)
19
     {
20
-      mjpeg_error_exit1 ("Couldn't read YUV4MPEG header: %s!", y4m_strerr (errno));
21
+      mjpeg_error_exit1 ("Couldn't read YUV4MPEG header: %s!", y4m_strerr (error));
22
     }
23
 
24
   /* get format information */
25
@@ -1089,7 +1089,7 @@ main (int argc, char *argv[])
26
   y4m_write_stream_header (YUVdeint.Y4MStream.fd_out, &YUVdeint.Y4MStream.ostreaminfo);
27
 
28
   /* read every frame until the end of the input stream and process it */
29
-  while (Y4M_OK == (errno = y4m_read_frame (YUVdeint.Y4MStream.fd_in,
30
+  while (Y4M_OK == (error = y4m_read_frame (YUVdeint.Y4MStream.fd_in,
31
 					    &YUVdeint.Y4MStream.istreaminfo,
32
 					    &YUVdeint.Y4MStream.iframeinfo, YUVdeint.inframe)))
33
     {

Return to bug 196629