OSDN Git Service

Merge remote-tracking branch 'newdev/master'
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Mar 2011 01:42:56 +0000 (02:42 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Mar 2011 01:42:56 +0000 (02:42 +0100)
* newdev/master: (33 commits)
  Fix an infinite loop when RoQ encoded generated a frame with a size greater than the maximum valid size.
  Add kbdwin.o to AC3 decoder
  Detect byte-swapped AC-3 and support decoding it directly.
  cosmetics: indentation
  Always copy input data for AC3 decoder.
  ac3enc: make sym_quant() branch-free
  cosmetics: indentation
  Add a CPU flag for the Atom processor.
  id3v2: skip broken tags with invalid size
  id3v2: don't explicitly skip padding
  Make sure kbhit() is in conio.h
  fate: update wmv8-drm reference
  vc1: make P-frame deblock filter bit-exact.
  configure: Add the -D parameter to the dlltool command
  amr: Set the AVFMT_GENERIC_INDEX flag
  amr: Set the pkt->pos field properly to the start of the packet
  amr: Set the codec->bit_rate field based on the last packet
  rtsp: Specify unicast for TCP interleaved streams, too
  Set the correct target for mingw64 dlltool
  applehttp: Change the variable for stream position in seconds into int64_t
  ...

Conflicts:
ffmpeg.c
ffplay.c
libavcodec/ac3dec.c
libavformat/avio.h
libavformat/id3v2.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
28 files changed:
1  2 
configure
ffmpeg.c
libavcodec/Makefile
libavcodec/ac3dec.c
libavcodec/ac3enc.c
libavcodec/dct.h
libavcodec/fft.h
libavcodec/ffv1.c
libavcodec/roqvideoenc.c
libavcodec/vc1.c
libavcodec/vc1.h
libavcodec/vc1dec.c
libavformat/amr.c
libavformat/applehttp.c
libavformat/asfdec.c
libavformat/avio.h
libavformat/avio_internal.h
libavformat/aviobuf.c
libavformat/flvdec.c
libavformat/id3v2.c
libavformat/mp3dec.c
libavformat/rmenc.c
libavformat/rtsp.c
libavformat/utils.c
libavformat/wtv.c
libavutil/cpu.c
libavutil/cpu.h
libavutil/x86/cpu.c

diff --cc configure
+++ b/configure
@@@ -2801,10 -2783,8 +2801,9 @@@ check_func_headers windows.h GetProcess
  check_func_headers windows.h MapViewOfFile
  check_func_headers windows.h VirtualAlloc
  
- check_header conio.h
  check_header dlfcn.h
  check_header dxva2api.h
 +check_header libcrystalhd/libcrystalhd_if.h
  check_header malloc.h
  check_header poll.h
  check_header sys/mman.h
diff --cc ffmpeg.c
+++ b/ffmpeg.c
@@@ -2509,9 -2436,12 +2457,13 @@@ static int transcode(AVFormatContext **
          print_sdp(output_files, nb_output_files);
      }
  
 -    if (!using_stdin && verbose >= 0) {
 +    if (!using_stdin) {
 +        if(verbose >= 0)
+ #if HAVE_KBHIT
 -        fprintf(stderr, "Press [q] to stop encoding\n");
 +            fprintf(stderr, "Press [q] to stop encoding\n");
+ #else
 -        fprintf(stderr, "Press ctrl-c to stop encoding\n");
++            fprintf(stderr, "Press ctrl-c to stop encoding\n");
+ #endif
          url_set_interrupt_cb(decode_interrupt_cb);
      }
      term_init();
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -121,8 -121,9 +121,9 @@@ static int amr_read_packet(AVFormatCont
  {
      AVCodecContext *enc = s->streams[0]->codec;
      int read, size = 0, toc, mode;
+     int64_t pos = avio_tell(s->pb);
  
 -    if (s->pb->eof_reached)
 +    if (url_feof(s->pb))
      {
          return AVERROR(EIO);
      }
Simple merge
Simple merge
@@@ -506,16 -516,6 +509,12 @@@ static av_always_inline int64_t avio_te
   */
  int64_t avio_size(AVIOContext *s);
  
- int av_url_read_fpause(AVIOContext *h, int pause);
- int64_t av_url_read_fseek(AVIOContext *h, int stream_index,
-                           int64_t timestamp, int flags);
 +/**
 + * feof() equivalent for AVIOContext.
 + * @return non zero if and only if end of file
 + */
 +int url_feof(AVIOContext *s);
 +
  /** @warning currently size is limited */
  #ifdef __GNUC__
  int avio_printf(AVIOContext *s, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 2, 3)));
Simple merge
Simple merge
Simple merge
@@@ -184,12 -184,11 +184,12 @@@ finish
  
  static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags)
  {
 -    int isv34, tlen, unsync;
 +    int isv34, unsync;
 +    unsigned tlen;
      char tag[5];
-     int64_t next;
+     int64_t next, end = avio_tell(s->pb) + len;
      int taghdrlen;
-     const char *reason;
+     const char *reason = NULL;
      AVIOContext pb;
      unsigned char *buffer = NULL;
      int buffer_size = 0;
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc libavutil/cpu.c
Simple merge
diff --cc libavutil/cpu.h
Simple merge
Simple merge