Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. diff -r -u /c/ftp/ffmpeg-1.1.3/configure /e/ffmpeg-1.1.3/configure
  2. --- /c/ftp/ffmpeg-1.1.3/configure       2013-02-23 05:05:23 +0400
  3. +++ /e/ffmpeg-1.1.3/configure   2013-03-12 04:38:08 +0400
  4. @@ -1348,9 +1348,7 @@
  5.      clock_gettime
  6.      closesocket
  7.      cmov
  8. -    CommandLineToArgvW
  9.      cpunop
  10. -    CryptGenRandom
  11.      dcbzl
  12.      dev_bktr_ioctl_bt848_h
  13.      dev_bktr_ioctl_meteor_h
  14. @@ -1371,14 +1369,7 @@
  15.      fork
  16.      getaddrinfo
  17.      gethrtime
  18. -    getopt
  19. -    GetProcessAffinityMask
  20. -    GetProcessMemoryInfo
  21. -    GetProcessTimes
  22. -    GetSystemTimeAsFileTime
  23.      getrusage
  24. -    getservbyport
  25. -    gettimeofday
  26.      glob
  27.      gnu_as
  28.      ibm_asm
  29. @@ -1399,12 +1390,10 @@
  30.      machine_ioctl_meteor_h
  31.      makeinfo
  32.      malloc_h
  33. -    MapViewOfFile
  34.      memalign
  35.      mkstemp
  36.      mm_empty
  37.      mmap
  38. -    mprotect
  39.      msvcrt
  40.      nanosleep
  41.      openjpeg_1_5_openjpeg_h
  42. @@ -1419,7 +1408,6 @@
  43.      sched_getaffinity
  44.      sdl
  45.      sdl_video_size
  46. -    SetConsoleTextAttribute
  47.      setmode
  48.      setrlimit
  49.      Sleep
  50. @@ -1455,8 +1443,6 @@
  51.      unistd_h
  52.      usleep
  53.      vfp_args
  54. -    VirtualAlloc
  55. -    windows_h
  56.      winsock2_h
  57.      xform_asm
  58.      xmm_clobbers
  59. Only in /e/ffmpeg-1.1.3/doc/examples: pc-uninstalled
  60. Only in /e/ffmpeg-1.1.3/libavcodec: libavcodec.pc
  61. diff -r -u /c/ftp/ffmpeg-1.1.3/libavcodec/utils.c /e/ffmpeg-1.1.3/libavcodec/utils.c
  62. --- /c/ftp/ffmpeg-1.1.3/libavcodec/utils.c      2013-02-23 05:05:23 +0400
  63. +++ /e/ffmpeg-1.1.3/libavcodec/utils.c  2013-03-14 03:19:38 +0400
  64. @@ -2549,6 +2549,8 @@
  65.  {
  66.      AVHWAccel *hwaccel = NULL;
  67.  
  68. +    printf("%s id %d format %d\n", __FUNCTION__, codec_id, pix_fmt);
  69. +
  70.      while ((hwaccel = av_hwaccel_next(hwaccel)))
  71.          if (hwaccel->id == codec_id
  72.              && hwaccel->pix_fmt == pix_fmt)
  73. diff -r -u /c/ftp/ffmpeg-1.1.3/libavcodec/vaapi_h264.c /e/ffmpeg-1.1.3/libavcodec/vaapi_h264.c
  74. --- /c/ftp/ffmpeg-1.1.3/libavcodec/vaapi_h264.c 2013-02-23 05:05:17 +0400
  75. +++ /e/ffmpeg-1.1.3/libavcodec/vaapi_h264.c     2013-03-14 04:46:14 +0400
  76. @@ -341,7 +341,7 @@
  77.      .name           = "h264_vaapi",
  78.      .type           = AVMEDIA_TYPE_VIDEO,
  79.      .id             = AV_CODEC_ID_H264,
  80. -    .pix_fmt        = AV_PIX_FMT_VAAPI_VLD,
  81. +    .pix_fmt        = AV_PIX_FMT_VAAPI_VLD, /* AV_PIX_FMT_YUV420P, */
  82.      .start_frame    = start_frame,
  83.      .end_frame      = end_frame,
  84.      .decode_slice   = decode_slice,
  85. Only in /e/ffmpeg-1.1.3/libavdevice: libavdevice.pc
  86. Only in /e/ffmpeg-1.1.3/libavfilter: libavfilter.pc
  87. diff -r -u /c/ftp/ffmpeg-1.1.3/libavformat/file.c /e/ffmpeg-1.1.3/libavformat/file.c
  88. --- /c/ftp/ffmpeg-1.1.3/libavformat/file.c      2013-02-23 05:05:17 +0400
  89. +++ /e/ffmpeg-1.1.3/libavformat/file.c  2013-07-12 17:59:02 +0400
  90. @@ -23,9 +23,9 @@
  91.  #include "libavutil/opt.h"
  92.  #include "avformat.h"
  93.  #include <fcntl.h>
  94. -#if HAVE_IO_H
  95. -#include <io.h>
  96. -#endif
  97. +//#if HAVE_IO_H
  98. +//#include <io.h>
  99. +//#endif
  100.  #if HAVE_UNISTD_H
  101.  #include <unistd.h>
  102.  #endif
  103. @@ -66,6 +66,7 @@
  104.  static int file_read(URLContext *h, unsigned char *buf, int size)
  105.  {
  106.      FileContext *c = h->priv_data;
  107. +
  108.      int r = read(c->fd, buf, size);
  109.      return (-1 == r)?AVERROR(errno):r;
  110.  }
  111. @@ -85,26 +86,15 @@
  112.  
  113.  static int file_check(URLContext *h, int mask)
  114.  {
  115. -#if HAVE_ACCESS && defined(R_OK)
  116. -    int ret = 0;
  117. -    if (access(h->filename, F_OK) < 0)
  118. -        return AVERROR(errno);
  119. -    if (mask&AVIO_FLAG_READ)
  120. -        if (access(h->filename, R_OK) >= 0)
  121. -            ret |= AVIO_FLAG_READ;
  122. -    if (mask&AVIO_FLAG_WRITE)
  123. -        if (access(h->filename, W_OK) >= 0)
  124. -            ret |= AVIO_FLAG_WRITE;
  125. -#else
  126. -    struct stat st;
  127. -    int ret = stat(h->filename, &st);
  128. -    if (ret < 0)
  129. -        return AVERROR(errno);
  130. +//    struct stat st;
  131. +//    int ret = stat(h->filename, &st);
  132. +//    if (ret < 0)
  133. +//        return AVERROR(errno);
  134.  
  135. -    ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ  : 0;
  136. -    ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;
  137. -#endif
  138. -    return ret;
  139. +//    ret |= st.st_mode&S_IRUSR ? mask&AVIO_FLAG_READ  : 0;
  140. +//    ret |= st.st_mode&S_IWUSR ? mask&AVIO_FLAG_WRITE : 0;
  141. +
  142. +    return AVIO_FLAG_READ | AVIO_FLAG_WRITE ;
  143.  }
  144.  
  145.  #if CONFIG_FILE_PROTOCOL
  146. Only in /e/ffmpeg-1.1.3/libavformat: libavformat.pc
  147. Only in /e/ffmpeg-1.1.3/libavutil: avconfig.h
  148. diff -r -u /c/ftp/ffmpeg-1.1.3/libavutil/file.c /e/ffmpeg-1.1.3/libavutil/file.c
  149. --- /c/ftp/ffmpeg-1.1.3/libavutil/file.c        2013-02-23 05:05:18 +0400
  150. +++ /e/ffmpeg-1.1.3/libavutil/file.c    2013-03-09 17:03:58 +0400
  151. @@ -25,13 +25,8 @@
  152.  #if HAVE_UNISTD_H
  153.  #include <unistd.h>
  154.  #endif
  155. -#if HAVE_IO_H
  156. -#include <io.h>
  157. -#endif
  158.  #if HAVE_MMAP
  159.  #include <sys/mman.h>
  160. -#elif HAVE_MAPVIEWOFFILE
  161. -#include <windows.h>
  162.  #endif
  163.  
  164.  typedef struct {
  165. Only in /e/ffmpeg-1.1.3/libavutil: libavutil.pc
  166. diff -r -u /c/ftp/ffmpeg-1.1.3/libavutil/log.c /e/ffmpeg-1.1.3/libavutil/log.c
  167. --- /c/ftp/ffmpeg-1.1.3/libavutil/log.c 2013-02-23 05:05:18 +0400
  168. +++ /e/ffmpeg-1.1.3/libavutil/log.c     2013-03-09 17:05:54 +0400
  169. @@ -29,9 +29,6 @@
  170.  #if HAVE_UNISTD_H
  171.  #include <unistd.h>
  172.  #endif
  173. -#if HAVE_IO_H
  174. -#include <io.h>
  175. -#endif
  176.  #include <stdlib.h>
  177.  #include "avutil.h"
  178.  #include "common.h"
  179. @@ -93,12 +90,13 @@
  180.      [16+AV_CLASS_CATEGORY_SWRESAMPLER     ] = 147 << 8 | 0x14,
  181.  };
  182.  
  183. -#define set_color(x)  fprintf(stderr, "\033[%d;3%dm", (color[x] >> 4) & 15, color[x] & 15)
  184. -#define set_256color(x) fprintf(stderr, "\033[48;5;%dm\033[38;5;%dm", (color[x] >> 16) & 0xff, (color[x] >> 8) & 0xff)
  185. -#define reset_color() fprintf(stderr, "\033[0m")
  186. +#define set_color(x)
  187. +#define set_256color(x)
  188. +#define reset_color()
  189.  #endif
  190.  static int use_color = -1;
  191.  
  192. +#undef fprintf
  193.  static void colored_fputs(int level, const char *str)
  194.  {
  195.      if (use_color < 0) {
  196. @@ -113,14 +111,12 @@
  197.              background = attr_orig & 0xF0;
  198.          }
  199.  #elif HAVE_ISATTY
  200. -        use_color = !getenv("NO_COLOR") && !getenv("AV_LOG_FORCE_NOCOLOR") &&
  201. -                    (getenv("TERM") && isatty(2) ||
  202. -                     getenv("AV_LOG_FORCE_COLOR"));
  203. -        if (getenv("AV_LOG_FORCE_256COLOR"))
  204. -            use_color *= 256;
  205. +//        use_color = !getenv("NO_COLOR") && !getenv("AV_LOG_FORCE_NOCOLOR") &&
  206. +//                    (getenv("TERM") && isatty(2) ||
  207. +//                     getenv("AV_LOG_FORCE_COLOR"));
  208.  #else
  209. -        use_color = getenv("AV_LOG_FORCE_COLOR") && !getenv("NO_COLOR") &&
  210. -                   !getenv("AV_LOG_FORCE_NOCOLOR");
  211. +//        use_color = getenv("AV_LOG_FORCE_COLOR") && !getenv("NO_COLOR") &&
  212. +//                   !getenv("AV_LOG_FORCE_NOCOLOR");
  213.  #endif
  214.      }
  215.  
  216. @@ -214,11 +210,12 @@
  217.      format_line(ptr, level, fmt, vl, part, sizeof(part[0]), &print_prefix, type);
  218.      snprintf(line, sizeof(line), "%s%s%s", part[0], part[1], part[2]);
  219.  
  220. -#if HAVE_ISATTY
  221. -    if (!is_atty)
  222. -        is_atty = isatty(2) ? 1 : -1;
  223. -#endif
  224. +//#if HAVE_ISATTY
  225. +//    if (!is_atty)
  226. +//        is_atty = isatty(2) ? 1 : -1;
  227. +//#endif
  228.  
  229. +#undef fprintf
  230.      if (print_prefix && (flags & AV_LOG_SKIP_REPEATED) && !strcmp(line, prev)){
  231.          count++;
  232.          if (is_atty == 1)
  233. diff -r -u /c/ftp/ffmpeg-1.1.3/libavutil/time.c /e/ffmpeg-1.1.3/libavutil/time.c
  234. --- /c/ftp/ffmpeg-1.1.3/libavutil/time.c        2013-02-23 05:05:18 +0400
  235. +++ /e/ffmpeg-1.1.3/libavutil/time.c    2013-03-09 17:18:54 +0400
  236. @@ -55,16 +55,5 @@
  237.  
  238.  int av_usleep(unsigned usec)
  239.  {
  240. -#if HAVE_NANOSLEEP
  241. -    struct timespec ts = { usec / 1000000, usec % 1000000 * 1000 };
  242. -    while (nanosleep(&ts, &ts) < 0 && errno == EINTR);
  243. -    return 0;
  244. -#elif HAVE_USLEEP
  245. -    return usleep(usec);
  246. -#elif HAVE_SLEEP
  247. -    Sleep(usec / 1000);
  248. -    return 0;
  249. -#else
  250.      return AVERROR(ENOSYS);
  251. -#endif
  252.  }
  253.