summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2003-02-04 22:01:34 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2003-02-04 22:01:34 +0000
commit9cb0f1dd7c89891c6c80614ad13f4643ba00d566 (patch)
tree02b7b2365a9785240da3f85bdae440e7939c6d0b
parent1e09c9327a5c61b74242e77d90692fb03e61dd26 (diff)
downloadxine-lib-9cb0f1dd7c89891c6c80614ad13f4643ba00d566.tar.gz
xine-lib-9cb0f1dd7c89891c6c80614ad13f4643ba00d566.tar.bz2
- remove possible name collision between the abs() define and the abs function from stdlib.h
CVS patchset: 4104 CVS date: 2003/02/04 22:01:34
-rw-r--r--src/libffmpeg/xine_decoder.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libffmpeg/xine_decoder.c b/src/libffmpeg/xine_decoder.c
index f850dc24a..560a1697c 100644
--- a/src/libffmpeg/xine_decoder.c
+++ b/src/libffmpeg/xine_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_decoder.c,v 1.91 2003/02/04 09:50:22 miguelfreitas Exp $
+ * $Id: xine_decoder.c,v 1.92 2003/02/04 22:01:34 hadess Exp $
*
* xine decoder plugin using ffmpeg
*
@@ -48,7 +48,7 @@
*/
#define SLICE_BUFFER_SIZE (1194 * 1024)
-#define abs(x) ( ((x)<0) ? -(x) : (x) )
+#define abs_float(x) ( ((x)<0) ? -(x) : (x) )
typedef struct {
video_decoder_class_t decoder_class;
@@ -486,26 +486,26 @@ static void ff_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
float diff;
this->xine_aspect_ratio = XINE_VO_ASPECT_DONT_TOUCH;
- diff = abs( this->context->aspect_ratio - 0.0 );
+ diff = abs_float( this->context->aspect_ratio - 0.0 );
- if( diff > abs( this->context->aspect_ratio - 1.0 ) ) {
+ if( diff > abs_float( this->context->aspect_ratio - 1.0 ) ) {
this->xine_aspect_ratio = XINE_VO_ASPECT_SQUARE;
- diff = abs( this->context->aspect_ratio - 1.0 );
+ diff = abs_float( this->context->aspect_ratio - 1.0 );
}
- if( diff > abs( this->context->aspect_ratio - 4.0/3.0 ) ) {
+ if( diff > abs_float( this->context->aspect_ratio - 4.0/3.0 ) ) {
this->xine_aspect_ratio = XINE_VO_ASPECT_4_3;
- diff = abs( this->context->aspect_ratio - 4.0/3.0 );
+ diff = abs_float( this->context->aspect_ratio - 4.0/3.0 );
}
- if( diff > abs( this->context->aspect_ratio - 16.0/9.0 ) ) {
+ if( diff > abs_float( this->context->aspect_ratio - 16.0/9.0 ) ) {
this->xine_aspect_ratio = XINE_VO_ASPECT_ANAMORPHIC;
- diff = abs( this->context->aspect_ratio - 16.0/9.0 );
+ diff = abs_float( this->context->aspect_ratio - 16.0/9.0 );
}
- if( diff > abs( this->context->aspect_ratio - 1.0/2.0 ) ) {
+ if( diff > abs_float( this->context->aspect_ratio - 1.0/2.0 ) ) {
this->xine_aspect_ratio = XINE_VO_ASPECT_DVB;
- diff = abs( this->context->aspect_ratio - 1.0/2.0 );
+ diff = abs_float( this->context->aspect_ratio - 1.0/2.0 );
}
this->aspect_ratio = this->context->aspect_ratio;