Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 170137 Details for
Bug 240379
media-video/mjpegtools-1.8.0-r2- encodertypes.h:76: error: 'abs' was not declared in this scope
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
mjpegtools-1.8.0-libc.patch
mjpegtools-1.8.0-libc.patch (text/plain), 2.38 KB, created by
Markus Peloquin
on 2008-10-28 18:48:46 UTC
(
hide
)
Description:
mjpegtools-1.8.0-libc.patch
Filename:
MIME Type:
Creator:
Markus Peloquin
Created:
2008-10-28 18:48:46 UTC
Size:
2.38 KB
patch
obsolete
>diff -ur mjpegtools-1.8.0.old/mpeg2enc/encodertypes.h mjpegtools-1.8.0/mpeg2enc/encodertypes.h >--- mjpegtools-1.8.0.old/mpeg2enc/encodertypes.h 2008-10-28 13:17:34.000000000 -0500 >+++ mjpegtools-1.8.0/mpeg2enc/encodertypes.h 2008-10-28 13:34:41.000000000 -0500 >@@ -23,7 +23,9 @@ > * 02111-1307, USA. > * > */ >- >+ >+#include <cstdlib> >+ > #include "config.h" > > >diff -ur mjpegtools-1.8.0.old/mpeg2enc/macroblock.cc mjpegtools-1.8.0/mpeg2enc/macroblock.cc >--- mjpegtools-1.8.0.old/mpeg2enc/macroblock.cc 2008-10-28 13:17:34.000000000 -0500 >+++ mjpegtools-1.8.0/mpeg2enc/macroblock.cc 2008-10-28 13:32:54.000000000 -0500 >@@ -19,6 +19,9 @@ > * > */ > >+ >+#include <limits> >+ > #include <stdio.h> > > #include "macroblock.hh" >@@ -49,7 +52,7 @@ > { > vector<MotionEst>::iterator i; > vector<MotionEst>::iterator min_me; >- int best_score = INT_MAX; >+ int best_score = std::numeric_limits<int>::max(); > int cur_score; > > // >diff -ur mjpegtools-1.8.0.old/mpeg2enc/motionest.cc mjpegtools-1.8.0/mpeg2enc/motionest.cc >--- mjpegtools-1.8.0.old/mpeg2enc/motionest.cc 2008-10-28 13:17:34.000000000 -0500 >+++ mjpegtools-1.8.0/mpeg2enc/motionest.cc 2008-10-28 13:38:03.000000000 -0500 >@@ -45,6 +45,8 @@ > * > */ > >+#include <limits> >+ > #include <config.h> > #include <stdio.h> > #include <stdlib.h> >@@ -1643,7 +1645,7 @@ > a basis for setting thresholds for rejecting really dud 4*4 > and 2*2 sub-sampled matches. > */ >- best.weight = psad_00(reffld+i0+j0*lx,ssblk->mb,lx,h,INT_MAX); >+ best.weight = psad_00(reffld+i0+j0*lx,ssblk->mb,lx,h,std::numeric_limits<int>::max()); > best.x = 0; > best.y = 0; > >@@ -1714,7 +1716,7 @@ > /* Final polish: half-pel search of best 1*1 against > reconstructed image. > */ >- res->sad = INT_MAX; >+ res->sad = std::numeric_limits<int>::max(); > x = (i0+best.x)<<1; > y = (j0+best.y)<<1; > >Only in mjpegtools-1.8.0/mpeg2enc: .motionest.cc.swp >diff -ur mjpegtools-1.8.0.old/mpeg2enc/picturereader.cc mjpegtools-1.8.0/mpeg2enc/picturereader.cc >--- mjpegtools-1.8.0.old/mpeg2enc/picturereader.cc 2008-10-28 13:17:34.000000000 -0500 >+++ mjpegtools-1.8.0/mpeg2enc/picturereader.cc 2008-10-28 13:36:50.000000000 -0500 >@@ -20,6 +20,8 @@ > */ > > >+#include <limits> >+ > #include "picturereader.hh" > #include <stdio.h> > #include <stdlib.h> >@@ -37,7 +39,7 @@ > frames_read = 0; > last_frame = -1; > lum_mean = 0; >- istrm_nframes = INT_MAX; >+ istrm_nframes = std::numeric_limits<int>::max(); > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240379
:
170137
|
170145
|
174872