OSDN Git Service

Merge remote-tracking branch 'qatar/master'
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Jun 2012 20:34:02 +0000 (22:34 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 22 Jun 2012 20:34:02 +0000 (22:34 +0200)
* qatar/master:
  libspeexenc: add supported sample rates and channel layouts.
  Replace usleep() calls with av_usleep()
  lavu: add av_usleep() function
  utvideo: mark interlaced frames as such
  utvideo: Fix interlaced prediction for RGB utvideo.
  cosmetics: do not use full path for local headers
  lavu/file: include unistd.h only when available
  configure: check for unistd.h
  log: include unistd.h only when needed
  lavf: include libavutil/time.h instead of redeclaring av_gettime()

Conflicts:
configure
doc/APIchanges
ffmpeg.c
ffplay.c
libavcodec/utvideo.c
libavutil/avutil.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
20 files changed:
1  2 
configure
doc/APIchanges
ffmpeg.c
ffplay.c
libavcodec/libspeexenc.c
libavcodec/utvideo.c
libavcodec/x86/rv40dsp_init.c
libavformat/avformat.h
libavformat/avio.c
libavformat/hls.c
libavformat/hlsproto.c
libavformat/rtmphttp.c
libavutil/arm/float_dsp_init_arm.c
libavutil/arm/float_dsp_init_vfp.c
libavutil/avutil.h
libavutil/file.c
libavutil/log.c
libavutil/time.c
libavutil/time.h
tools/pktdumper.c

diff --cc configure
+++ b/configure
@@@ -1239,11 -1113,10 +1239,12 @@@ HAVE_LIST=
      memalign
      mkstemp
      mmap
+     nanosleep
      netinet_sctp_h
 +    PeekNamedPipe
      poll_h
      posix_memalign
 +    pthread_cancel
      round
      roundf
      sched_getaffinity
@@@ -3159,32 -2854,30 +3164,36 @@@ check_func  strptim
  check_func  sched_getaffinity
  check_func  sysconf
  check_func  sysctl
+ check_func  usleep
 +check_func_headers conio.h kbhit
 +check_func_headers windows.h PeekNamedPipe
  check_func_headers io.h setmode
 +check_func_headers lzo/lzo1x.h lzo1x_999_compress
  check_lib2 "windows.h psapi.h" GetProcessMemoryInfo -lpsapi
  check_func_headers windows.h GetProcessAffinityMask
  check_func_headers windows.h GetProcessTimes
  check_func_headers windows.h GetSystemTimeAsFileTime
  check_func_headers windows.h MapViewOfFile
+ check_func_headers windows.h Sleep
  check_func_headers windows.h VirtualAlloc
 +check_func_headers glob.h glob
  
  check_header dlfcn.h
 -check_header dxva2api.h
 +check_header dxva2api.h -D_WIN32_WINNT=0x0600
 +check_header libcrystalhd/libcrystalhd_if.h
  check_header malloc.h
  check_header poll.h
  check_header sys/mman.h
  check_header sys/param.h
  check_header sys/resource.h
  check_header sys/select.h
 +check_header termios.h
+ check_header unistd.h
  check_header vdpau/vdpau.h
  check_header vdpau/vdpau_x11.h
+ check_header windows.h
  check_header X11/extensions/XvMClib.h
 +check_header asm/types.h
  
  disabled  zlib || check_lib   zlib.h      zlibVersion -lz   || disable  zlib
  disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib
diff --cc doc/APIchanges
@@@ -15,29 -13,9 +15,32 @@@ libavutil:     2011-04-1
  
  API changes, most recent first:
  
 +2012-04-11 - xxxxxxx - lavu 51.58.100 - error.h
 +  Add av_make_error_string() and av_err2str() utilities to
 +  libavutil/error.h.
 +
 +2012-06-05 - xxxxxxx - lavc 54.24.100
 +  Add pkt_duration field to AVFrame.
 +
 +2012-05-24 - xxxxxxx - lavu 51.54.100
 +  Move AVPALETTE_SIZE and AVPALETTE_COUNT macros from
 +  libavcodec/avcodec.h to libavutil/pixfmt.h.
 +
 +2012-05-07 - xxxxxxx - lavf 54.5.100
 +  Add av_guess_sample_aspect_ratio() function.
 +
 +2012-04-20 - xxxxxxx - lavfi 2.70.100
 +  Add avfilter_unref_bufferp() to avfilter.h.
 +
 +2012-04-12 - xxxxxxx - lavfi 2.68.100
 +  Install libavfilter/asrc_abuffer.h public header.
 +
 +2012-03-26 - a67d9cf - lavfi 2.66.100
 +  Add avfilter_fill_frame_from_{audio_,}buffer_ref() functions.
 +
+ 2012-06-22 - xxxxxxx - lavu 51.34.0
+   Add av_usleep()
  2012-06-20 - ae0a301 - lavu 51.33.0
    Move av_gettime() to libavutil, add libavutil/time.h
  
diff --cc ffmpeg.c
+++ b/ffmpeg.c
@@@ -31,7 -27,6 +31,9 @@@
  #include <errno.h>
  #include <signal.h>
  #include <limits.h>
++#if HAVE_ISATTY
 +#include <unistd.h>
++#endif
  #include "libavformat/avformat.h"
  #include "libavdevice/avdevice.h"
  #include "libswscale/swscale.h"
  #include "libavutil/avstring.h"
  #include "libavutil/libm.h"
  #include "libavutil/imgutils.h"
 +#include "libavutil/timestamp.h"
 +#include "libavutil/bprint.h"
+ #include "libavutil/time.h"
  #include "libavformat/os_support.h"
  
 +#include "libavformat/ffm.h" // not public API
 +
 +# include "libavfilter/avcodec.h"
  # include "libavfilter/avfilter.h"
  # include "libavfilter/avfiltergraph.h"
  # include "libavfilter/buffersrc.h"
@@@ -2300,10 -1873,10 +2303,10 @@@ static void do_streamcopy(InputStream *
  static void rate_emu_sleep(InputStream *ist)
  {
      if (input_files[ist->file_index]->rate_emu) {
 -        int64_t pts = av_rescale(ist->last_dts, 1000000, AV_TIME_BASE);
 +        int64_t pts = av_rescale(ist->dts, 1000000, AV_TIME_BASE);
          int64_t now = av_gettime() - ist->start;
          if (pts > now)
-             usleep(pts - now);
+             av_usleep(pts - now);
      }
  }
  
diff --cc ffplay.c
+++ b/ffplay.c
@@@ -36,7 -31,7 +36,8 @@@
  #include "libavutil/dict.h"
  #include "libavutil/parseutils.h"
  #include "libavutil/samplefmt.h"
 +#include "libavutil/avassert.h"
+ #include "libavutil/time.h"
  #include "libavformat/avformat.h"
  #include "libavdevice/avdevice.h"
  #include "libswscale/swscale.h"
  #include <SDL.h>
  #include <SDL_thread.h>
  
 -#ifdef __MINGW32__
 -#undef main /* We don't want SDL to override our main() */
 -#endif
 +#include "cmdutils.h"
  
- #include <unistd.h>
  #include <assert.h>
  
 -const char program_name[] = "avplay";
 +const char program_name[] = "ffplay";
  const int program_birth_year = 2003;
  
  #define MAX_QUEUE_SIZE (15 * 1024 * 1024)
@@@ -1014,8 -952,7 +1014,8 @@@ static int refresh_thread(void *opaque
              is->refresh = 1;
              SDL_PushEvent(&event);
          }
 -        av_usleep(is->audio_st && is->show_audio ? rdftspeed * 1000 : 5000); // FIXME ideally we should wait the correct time but SDLs event passing is so slow it would be silly
 +        //FIXME ideally we should wait the correct time but SDLs event passing is so slow it would be silly
-         usleep(is->audio_st && is->show_mode != SHOW_MODE_VIDEO ? rdftspeed*1000 : 5000);
++        av_usleep(is->audio_st && is->show_mode != SHOW_MODE_VIDEO ? rdftspeed*1000 : 5000);
      }
      return 0;
  }
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
   */
  
  #define LIBAVUTIL_VERSION_MAJOR 51
- #define LIBAVUTIL_VERSION_MINOR 60
 -#define LIBAVUTIL_VERSION_MINOR 34
 -#define LIBAVUTIL_VERSION_MICRO  0
++#define LIBAVUTIL_VERSION_MINOR 61
 +#define LIBAVUTIL_VERSION_MICRO 100
  
  #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
                                                 LIBAVUTIL_VERSION_MINOR, \
Simple merge
diff --cc libavutil/log.c
   * logging functions
   */
  
+ #include "config.h"
+ #if HAVE_ISATTY
  #include <unistd.h>
+ #endif
  #include <stdlib.h>
 -#include "avstring.h"
  #include "avutil.h"
  #include "log.h"
  
Simple merge
Simple merge
Simple merge