]> git.sesse.net Git - ffmpeg/commitdiff
Merge remote-tracking branch 'qatar/master'
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 14 Oct 2011 01:43:24 +0000 (03:43 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 14 Oct 2011 01:48:22 +0000 (03:48 +0200)
* qatar/master: (22 commits)
  prores: add FATE tests
  id3v2: reduce the scope of some non-globally-used symbols/structures
  id3v2: cosmetics: move some declarations before the places they are used
  shorten: remove the flush function.
  shn: do not allow seeking in the raw shn demuxer.
  avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.
  avformat: update AVInputFormat allowed flags
  avformat: don't unconditionally call ff_read_frame_flush() when trying to seek.
  truespeech: use sizeof() instead of hardcoded sizes
  truespeech: remove unneeded variable, 'consumed'
  truespeech: simplify truespeech_read_frame() by using get_bits()
  truespeech: decode directly to output buffer instead of a temp buffer
  truespeech: check to make sure channels == 1
  truespeech: check for large enough output buffer rather than truncating output
  truespeech: remove unneeded zero-size packet check.
  mlpdec: return meaningful error codes instead of -1
  mlpdec: remove unnecessary wrapper function
  mlpdec: only calculate output size once
  mlpdec: validate that the reported channel count matches the actual output channel count
  pcm: reduce pointer type casting
  ...

Conflicts:
libavformat/avformat.h
libavformat/id3v2.c
libavformat/id3v2.h
libavformat/utils.c
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
15 files changed:
1  2 
doc/APIchanges
libavcodec/mathops.h
libavcodec/mlp_parser.c
libavcodec/mlpdec.c
libavcodec/pcm.c
libavcodec/shorten.c
libavcodec/truespeech.c
libavcodec/vc1.c
libavformat/avformat.h
libavformat/id3v2.c
libavformat/id3v2.h
libavformat/rawdec.c
libavformat/utils.c
libavformat/version.h
tests/Makefile

diff --cc doc/APIchanges
Simple merge
Simple merge
Simple merge
Simple merge
index c4928290c4090752a92c47c3e21e8e5d703c3d20,66edfba0f23d457c67f1e59d44586f2f089b606f..0c18e0f0d73581d44cba810d37d1afdb60c0e645
@@@ -438,12 -435,10 +435,12 @@@ static int pcm_decode_frame(AVCodecCont
              }
              break;
          default:
 -            av_log(avctx, AV_LOG_ERROR, "PCM DVD unsupported sample depth\n");
 +            av_log(avctx, AV_LOG_ERROR,
 +                   "PCM DVD unsupported sample depth %i\n",
 +                   avctx->bits_per_coded_sample);
              return -1;
          }
-         samples = (short *) dst_int32_t;
+         samples = (uint8_t *) dst_int32_t;
          break;
      case CODEC_ID_PCM_LXF:
          dst_int32_t = data;
Simple merge
Simple merge
Simple merge
index c785a13ea7db022abca53f9eb5ffc4e3ab8e4b36,70d466e0d1ed5285b20df14e98c5391918c0a707..49fe08ec60c0a82041b74a113a694a8fd8b2aa9a
@@@ -274,9 -274,7 +274,10 @@@ typedef struct AVFormatParameters 
  #define AVFMT_NOSTREAMS     0x1000 /**< Format does not require any streams */
  #define AVFMT_NOBINSEARCH   0x2000 /**< Format does not allow to fallback to binary search via read_timestamp */
  #define AVFMT_NOGENSEARCH   0x4000 /**< Format does not allow to fallback to generic search */
- #define AVFMT_TS_NONSTRICT  0x8000 /**< Format does not require strictly
-                                           increasing timestamps, but they must
-                                           still be monotonic */
+ #define AVFMT_NO_BYTE_SEEK  0x8000 /**< Format does not allow seeking by bytes */
++#define AVFMT_TS_NONSTRICT  0x8000000 /**< Format does not require strictly
++                                           increasing timestamps, but they must
++                                           still be monotonic */
  
  typedef struct AVOutputFormat {
      const char *name;
index 22a2df79e0d09c588faa11a1997a01704d4bdf04,c593007e876bb707f43bc9fe3bc0a0aca93d8bbe..32870648cf87598993499e0075715ac3fe50cdc3
@@@ -328,6 -380,18 +388,18 @@@ finish
          av_dict_set(m, "date", date, 0);
  }
  
 -    void (*free)();
+ typedef struct ID3v2EMFunc {
+     const char *tag3;
+     const char *tag4;
+     void (*read)(AVFormatContext*, AVIOContext*, int, char*, ID3v2ExtraMeta **);
++    void (*free)(void *);
+ } ID3v2EMFunc;
+ static const ID3v2EMFunc id3v2_extra_meta_funcs[] = {
+     { "GEO", "GEOB", read_geobtag, free_geobtag },
+     { NULL }
+ };
  /**
   * Get the corresponding ID3v2EMFunc struct for a tag.
   * @param isv34 Determines if v2.2 or v2.3/4 strings are used
  static const ID3v2EMFunc *get_extra_meta_func(const char *tag, int isv34)
  {
      int i = 0;
-     while (ff_id3v2_extra_meta_funcs[i].tag3) {
+     while (id3v2_extra_meta_funcs[i].tag3) {
          if (!memcmp(tag,
-                     (isv34 ?
-                         ff_id3v2_extra_meta_funcs[i].tag4 :
-                         ff_id3v2_extra_meta_funcs[i].tag3),
+                     (isv34 ? id3v2_extra_meta_funcs[i].tag4 :
+                              id3v2_extra_meta_funcs[i].tag3),
                      (isv34 ? 4 : 3)))
-             return &ff_id3v2_extra_meta_funcs[i];
+             return &id3v2_extra_meta_funcs[i];
          i++;
      }
-     return &ff_id3v2_extra_meta_funcs[i];
 -    return NULL;
++    return &id3v2_extra_meta_funcs[i];
  }
  
  static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags, ID3v2ExtraMeta **extra_meta)
Simple merge
Simple merge
index 58982955de2d65b483f158777eda21d28e1e5c51,3115723668aa78ca3292c5e30fd5a326bc59f3a8..c7eb93f3b0cdfc5f796d090a9edc37e98fab360d
@@@ -1824,12 -1767,11 +1826,13 @@@ int av_seek_frame(AVFormatContext *s, i
      }
  
      /* first, we try the format specific seek */
-     if (s->iformat->read_seek)
 +    AV_NOWARN_DEPRECATED(
+     if (s->iformat->read_seek) {
+         ff_read_frame_flush(s);
          ret = s->iformat->read_seek(s, stream_index, timestamp, flags);
-     else
+     else
          ret = -1;
 +    )
      if (ret >= 0) {
          return 0;
      }
index d2f9786a0dc88d1038cc40e4fab0dac60c6b6775,53c585a06b4178fe3b5c2c55b6dd0d8b41400e6c..fc27815f41b152af8867dc81d112ebcb88cb2fd3
@@@ -24,7 -24,7 +24,7 @@@
  #include "libavutil/avutil.h"
  
  #define LIBAVFORMAT_VERSION_MAJOR 53
- #define LIBAVFORMAT_VERSION_MINOR 15
 -#define LIBAVFORMAT_VERSION_MINOR  9
++#define LIBAVFORMAT_VERSION_MINOR 16
  #define LIBAVFORMAT_VERSION_MICRO  0
  
  #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
diff --cc tests/Makefile
index ff0aaa0def112a44c85f4f8978666735c15b2447,1ec9dc342c33e8c4772d4d67b633ba7d932f2af7..0a3e55e9d97ed7e576cef835d01785fb0883ed8c
@@@ -40,6 -31,7 +40,7 @@@ include $(SRC_PATH)/tests/fate/fft.ma
  include $(SRC_PATH)/tests/fate/h264.mak
  include $(SRC_PATH)/tests/fate/libavutil.mak
  include $(SRC_PATH)/tests/fate/mp3.mak
 -include $(SRC_PATH)/tests/fate/prores.mak
++#include $(SRC_PATH)/tests/fate/prores.mak
  include $(SRC_PATH)/tests/fate/vorbis.mak
  include $(SRC_PATH)/tests/fate/vp8.mak