From 8c24585a7d379315f0cf823e8b58e007abfc3fe1 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Tue, 13 May 2014 14:31:03 +0000 Subject: Bump libav to version 10.1 Miscellaneous bugfixes and security fixes. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6184 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- contrib/ffmpeg/A00-qsv.patch | 2 +- contrib/ffmpeg/A01-dca-downmix-6point1.patch | 62 ---------------------------- contrib/ffmpeg/module.defs | 4 +- 3 files changed, 3 insertions(+), 65 deletions(-) delete mode 100644 contrib/ffmpeg/A01-dca-downmix-6point1.patch (limited to 'contrib/ffmpeg') diff --git a/contrib/ffmpeg/A00-qsv.patch b/contrib/ffmpeg/A00-qsv.patch index e8f04270d..988ea6ccd 100644 --- a/contrib/ffmpeg/A00-qsv.patch +++ b/contrib/ffmpeg/A00-qsv.patch @@ -1,5 +1,5 @@ diff --git a/configure b/configure -index c6789d5..d1a8661 100755 +index 05acff5..e71aad5 100755 --- a/configure +++ b/configure @@ -132,6 +132,7 @@ Component options: diff --git a/contrib/ffmpeg/A01-dca-downmix-6point1.patch b/contrib/ffmpeg/A01-dca-downmix-6point1.patch deleted file mode 100644 index ec9b1c044..000000000 --- a/contrib/ffmpeg/A01-dca-downmix-6point1.patch +++ /dev/null @@ -1,62 +0,0 @@ -diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c -index 6c240ee..ce8660d 100644 ---- a/libavcodec/dcadec.c -+++ b/libavcodec/dcadec.c -@@ -1856,6 +1856,16 @@ static int dca_decode_frame(AVCodecContext *avctx, void *data, - if (s->amode < 16) { - avctx->channel_layout = dca_core_channel_layout[s->amode]; - -+ if (s->prim_channels + !!s->lfe > 2 && -+ avctx->request_channel_layout == AV_CH_LAYOUT_STEREO) { -+ /* -+ * Neither the core's auxiliary data nor our default tables contain -+ * downmix coefficients for the additional channel coded in the XCh -+ * extension, so when we're doing a Stereo downmix, don't decode it. -+ */ -+ s->xch_disable = 1; -+ } -+ - #if FF_API_REQUEST_CHANNELS - FF_DISABLE_DEPRECATION_WARNINGS - if (s->xch_present && !s->xch_disable && -@@ -1886,7 +1896,7 @@ FF_ENABLE_DEPRECATION_WARNINGS - s->channel_order_tab[channels - 1 - !!s->lfe] < 0) - return AVERROR_INVALIDDATA; - -- if (s->prim_channels + !!s->lfe > 2 && -+ if (num_core_channels + !!s->lfe > 2 && - avctx->request_channel_layout == AV_CH_LAYOUT_STEREO) { - channels = 2; - s->output = s->prim_channels == 2 ? s->amode : DCA_STEREO; -@@ -1900,7 +1910,7 @@ FF_ENABLE_DEPRECATION_WARNINGS - if (s->core_downmix && (s->core_downmix_amode == DCA_STEREO || - s->core_downmix_amode == DCA_STEREO_TOTAL)) { - int sign, code; -- for (i = 0; i < s->prim_channels + !!s->lfe; i++) { -+ for (i = 0; i < num_core_channels + !!s->lfe; i++) { - sign = s->core_downmix_codes[i][0] & 0x100 ? 1 : -1; - code = s->core_downmix_codes[i][0] & 0x0FF; - s->downmix_coef[i][0] = (!code ? 0.0f : -@@ -1918,19 +1928,19 @@ FF_ENABLE_DEPRECATION_WARNINGS - "Invalid channel mode %d\n", am); - return AVERROR_INVALIDDATA; - } -- if (s->prim_channels + !!s->lfe > -+ if (num_core_channels + !!s->lfe > - FF_ARRAY_ELEMS(dca_default_coeffs[0])) { - avpriv_request_sample(s->avctx, "Downmixing %d channels", - s->prim_channels + !!s->lfe); - return AVERROR_PATCHWELCOME; - } -- for (i = 0; i < s->prim_channels + !!s->lfe; i++) { -+ for (i = 0; i < num_core_channels + !!s->lfe; i++) { - s->downmix_coef[i][0] = dca_default_coeffs[am][i][0]; - s->downmix_coef[i][1] = dca_default_coeffs[am][i][1]; - } - } - av_dlog(s->avctx, "Stereo downmix coeffs:\n"); -- for (i = 0; i < s->prim_channels + !!s->lfe; i++) { -+ for (i = 0; i < num_core_channels + !!s->lfe; i++) { - av_dlog(s->avctx, "L, input channel %d = %f\n", i, - s->downmix_coef[i][0]); - av_dlog(s->avctx, "R, input channel %d = %f\n", i, diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs index eae74b09c..a86671db3 100644 --- a/contrib/ffmpeg/module.defs +++ b/contrib/ffmpeg/module.defs @@ -1,4 +1,4 @@ -__deps__ := YASM BZIP2 ZLIB FDKAAC PTHREADW32 LIBMFX LIBVPX +__deps__ := YASM BZIP2 ZLIB FDKAAC LIBVPX ifeq (1,$(FEATURE.qsv)) __deps__ += PTHREADW32 LIBMFX endif @@ -6,7 +6,7 @@ endif $(eval $(call import.MODULE.defs,FFMPEG,ffmpeg,$(__deps__))) $(eval $(call import.CONTRIB.defs,FFMPEG)) -FFMPEG.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libav-v10.tar.bz2 +FFMPEG.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libav-v10.1.tar.bz2 FFMPEG.CONFIGURE.deps = FFMPEG.CONFIGURE.env = -- cgit v1.2.3