OSDN Git Service

Merge remote-tracking branch 'qatar/master'
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 12 Feb 2012 00:02:55 +0000 (01:02 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 12 Feb 2012 00:06:13 +0000 (01:06 +0100)
* qatar/master:
  FATE: update reference for seek-alac_mp4
  sunrast: Return AVERROR values instead of -1.
  sunrast: Add support for gray8 decoding.
  swscale: enforce a minimum filtersize.
  alacenc: use AVCodec.encode2()
  alacenc: cosmetics: indentation
  alacenc: consolidate bitstream writing into a single function.
  alacenc: only encode frame size in header for a final smaller frame
  alacenc: store current frame size in AlacEncodeContext.
  alacenc: return AVERROR codes in alac_encode_frame()
  alacenc: calculate a new max frame size for the final small frame
  alacenc: pretty-printing and other cosmetics
  alacenc: fix error handling and potential memleaks in alac_encode_init()
  alacenc: do not set coded_frame->key_frame
  alacenc: do not set bits_per_coded_sample
  alacenc: remove unneeded frame_size check in alac_encode_frame()
  tta: error out if samplerate is zero.
  ttadec: fix invalid free when an error occurs while decoding 24-bit tta
  wavpack: add needed braces for 2 statements inside an if block

Conflicts:
tests/ref/acodec/alac

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/alacenc.c
libavcodec/sunrast.c
libavcodec/tta.c
libavcodec/wavpack.c
libswscale/utils.c
tests/ref/acodec/alac

Simple merge
@@@ -70,8 -70,9 +70,9 @@@ static int sunrast_decode_frame(AVCodec
      AVFrame *picture         = data;
      AVFrame * const p        = &s->picture;
      unsigned int w, h, depth, type, maptype, maplength, stride, x, y, len, alen;
 -    uint8_t *ptr;
 +    uint8_t *ptr, *ptr2 = NULL;
      const uint8_t *bufstart = buf;
+     int ret;
  
      if (avpkt->size < 32)
          return AVERROR_INVALIDDATA;
      }
      if (maptype & ~1) {
          av_log(avctx, AV_LOG_ERROR, "invalid colormap type\n");
-         return -1;
+         return AVERROR_INVALIDDATA;
      }
  
 +    if (type == RT_FORMAT_TIFF || type == RT_FORMAT_IFF) {
 +        av_log(avctx, AV_LOG_ERROR, "unsupported (compression) type\n");
 +        return -1;
 +    }
  
      switch (depth) {
          case 1:
          case 24:
              avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB24 : PIX_FMT_BGR24;
              break;
 +        case 32:
 +            avctx->pix_fmt = (type == RT_FORMAT_RGB) ? PIX_FMT_RGB0 : PIX_FMT_BGR0;
 +            break;
          default:
              av_log(avctx, AV_LOG_ERROR, "invalid depth\n");
-             return -1;
+             return AVERROR_INVALIDDATA;
      }
  
      if (p->data[0])
Simple merge
Simple merge
Simple merge
@@@ -1,4 -1,4 +1,4 @@@
- cf9a4b40ab945367cbb0e6cbb4cf37a1 *./tests/data/acodec/alac.m4a
- 389166 ./tests/data/acodec/alac.m4a
 -b9e78aa8b8774a63d187380a47201a37 *./tests/data/acodec/alac.m4a
 -389154 ./tests/data/acodec/alac.m4a
++acaed80b0b5bbec7ee9dc0899166a6e2 *./tests/data/acodec/alac.m4a
++388910 ./tests/data/acodec/alac.m4a
  64151e4bcc2b717aa5a8454d424d6a1f *./tests/data/alac.acodec.out.wav
  stddev:    0.00 PSNR:999.99 MAXDIFF:    0 bytes:  1058400/  1058400