[Mplayer-users] New ffmpeg code doesn't compile on FreeBSD (short patch)

Bohdan Horst nexus at hoth.amu.edu.pl
Fri Jul 6 10:56:17 CEST 2001


On Fri, Jul 06, 2001 at 10:30:15AM +0200, Bohdan Horst wrote:

> 
> Fri Jul  6 08:28:59 UTC 2001
> FreeBSD 4.3 (tested on 2 machines):
> 
> gmake[1]: Wchodzę katalog `/root/src/main/libavcodec'
> gcc -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_THREAD_SAFE -Wall
>  -DCONFIG_MMX -DCONFIG_SSE -c -o common.o common.c
[...]

compile and work on FreeBSD after:

*** common.c    Fri Jul  6 05:32:40 2001
--- libavcodec/common.c  Fri Jul  6 10:31:59 2001
***************
*** 19,25 ****
  #include <stdlib.h>
  #include <stdio.h>
  #include <string.h>
! #include <netinet/in.h>
  #include <math.h>
  #include "common.h"
--- 19,25 ----
  #include <stdlib.h>
  #include <stdio.h>
  #include <string.h>
! /*#include <netinet/in.h>*/
  #include <math.h>
  #include "common.h"


and

*** dsputil.h   Fri Jul  6 05:32:40 2001
--- libavcodec/dsputil.h Fri Jul  6 10:34:40 2001
***************
*** 2,8 ****
  #define DSPUTIL_H
  #include "common.h"
! #include <stdint.h>
  /* dct code */
  typedef short DCTELEM;
--- 2,8 ----
  #define DSPUTIL_H
  #include "common.h"
! /*#include <stdint.h>*/
  /* dct code */
  typedef short DCTELEM;


Speed tests (total time with -nosound):
P3 750 + TNT2 + X11:       ffmpeg 1.08 times slower than dll 
AMD K6-2 333 + C&T + Xv:   ffmpeg 1.45 times slower than dll :(

Best regards

-- 
 / irl:Bohdan 'Nexus' Horst | mailto:nexus at irc.pl | irc:Nexus \
{---------------------------^----------v----------^------------}
 \ http://www.physd.amu.edu.pl/~nexus/ | Instytut Fizyki  UAM /

_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list