ffmpeg.git
3 years agoMerge commit 'c91d6a33f872574c95c8784277cf60ffcf6bff4f'
James Almer [Thu, 23 Mar 2017 20:38:20 +0000 (17:38 -0300)]
Merge commit 'c91d6a33f872574c95c8784277cf60ffcf6bff4f'

* commit 'c91d6a33f872574c95c8784277cf60ffcf6bff4f':
  checkasm: aarch64: Add filler args to make sure all parameters are passed on the stack

Merged-by: James Almer <jamrial@gmail.com>
3 years agoMerge commit 'f1b3e131385176c3c9d9783b25047856a0dcebf6'
James Almer [Thu, 23 Mar 2017 20:36:53 +0000 (17:36 -0300)]
Merge commit 'f1b3e131385176c3c9d9783b25047856a0dcebf6'

* commit 'f1b3e131385176c3c9d9783b25047856a0dcebf6':
  checkasm: aarch64: Clobber the stack before calling functions

Merged-by: James Almer <jamrial@gmail.com>
3 years agoMerge commit 'a05cc56124b4f1237f6355784de821e3290ddb44'
James Almer [Thu, 23 Mar 2017 20:35:38 +0000 (17:35 -0300)]
Merge commit 'a05cc56124b4f1237f6355784de821e3290ddb44'

* commit 'a05cc56124b4f1237f6355784de821e3290ddb44':
  checkasm: arm/aarch64: Fix the amount of space reserved for stack parameters

Merged-by: James Almer <jamrial@gmail.com>
3 years agoMerge commit '8e2ea691351c5079cdab245ff7bfa5c0f3e3bfe4'
James Almer [Thu, 23 Mar 2017 19:52:42 +0000 (16:52 -0300)]
Merge commit '8e2ea691351c5079cdab245ff7bfa5c0f3e3bfe4'

* commit '8e2ea691351c5079cdab245ff7bfa5c0f3e3bfe4':
  lavf: use the new bitstream filter for extracting extradata

Merged-by: James Almer <jamrial@gmail.com>
3 years agoMerge commit '89b35a139e838deeb32ec20d8d034c81014401d0'
James Almer [Thu, 23 Mar 2017 19:31:15 +0000 (16:31 -0300)]
Merge commit '89b35a139e838deeb32ec20d8d034c81014401d0'

* commit '89b35a139e838deeb32ec20d8d034c81014401d0':
  lavc: add a bitstream filter for extracting extradata from packets

Merged-by: James Almer <jamrial@gmail.com>
3 years agoMerge commit 'f6e2f8a9ffda2247bffba991450990d075ea68e3'
James Almer [Thu, 23 Mar 2017 18:41:09 +0000 (15:41 -0300)]
Merge commit 'f6e2f8a9ffda2247bffba991450990d075ea68e3'

* commit 'f6e2f8a9ffda2247bffba991450990d075ea68e3':
  hevcdec: move parameter set parsing into a separate header

Merged-by: James Almer <jamrial@gmail.com>
3 years agoMerge commit '150c896a9e46b23b97debb0a5f66fbaeaa32f153'
James Almer [Thu, 23 Mar 2017 18:12:23 +0000 (15:12 -0300)]
Merge commit '150c896a9e46b23b97debb0a5f66fbaeaa32f153'

* commit '150c896a9e46b23b97debb0a5f66fbaeaa32f153':
  hevcdec: split ff_hevc_diag_scan* declarations into a separate header

Merged-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/hevc: add missing hevc.h header
James Almer [Thu, 23 Mar 2017 18:07:28 +0000 (15:07 -0300)]
avcodec/hevc: add missing hevc.h header

It was lost as part of a merge in 6397815be0bee10948387fcb90ead36ec2834ef7.

3 years agoMerge commit '645c6ff4231a75a71db58c8e6d06346068d2f949'
James Almer [Thu, 23 Mar 2017 17:57:32 +0000 (14:57 -0300)]
Merge commit '645c6ff4231a75a71db58c8e6d06346068d2f949'

* commit '645c6ff4231a75a71db58c8e6d06346068d2f949':
  hevcdec: drop the prototype of a non-existing function

This commit is a noop. The prototype in question is not in our tree.

Merged-by: James Almer <jamrial@gmail.com>
3 years agoMerge commit 'c359d624d3efc3fd1d83210d78c4152bd329b765'
James Almer [Thu, 23 Mar 2017 17:27:48 +0000 (14:27 -0300)]
Merge commit 'c359d624d3efc3fd1d83210d78c4152bd329b765'

* commit 'c359d624d3efc3fd1d83210d78c4152bd329b765':
  hevcdec: move decoder-independent declarations into a separate header

Merged-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/bytestream: check for AV_HAVE_BIGENDIAN instead of HAVE_BIGENDIAN
James Almer [Thu, 23 Mar 2017 17:26:44 +0000 (14:26 -0300)]
avcodec/bytestream: check for AV_HAVE_BIGENDIAN instead of HAVE_BIGENDIAN

No need to include config.h for HAVE_BIGENDIAN when libavutil/avconfig.h
is already included.

3 years agoavcodec/nvenc: apply quantization factors to cqp
Timo Rothenpieler [Thu, 23 Mar 2017 16:10:25 +0000 (17:10 +0100)]
avcodec/nvenc: apply quantization factors to cqp

3 years agoavcodec/nvenc: Deprecate usage of global_quality, introducing qp
Timo Rothenpieler [Thu, 23 Mar 2017 16:01:40 +0000 (17:01 +0100)]
avcodec/nvenc: Deprecate usage of global_quality, introducing qp

3 years agoMerge commit '4abe3b049d987420eb891f74a35af2cebbf52144'
Clément Bœsch [Thu, 23 Mar 2017 15:48:41 +0000 (16:48 +0100)]
Merge commit '4abe3b049d987420eb891f74a35af2cebbf52144'

* commit '4abe3b049d987420eb891f74a35af2cebbf52144':
  hevc: rename hevc.[ch] to hevcdec.[ch]

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '6c31ba226968f12f898120dbb928dab34e03782b'
Clément Bœsch [Thu, 23 Mar 2017 15:41:16 +0000 (16:41 +0100)]
Merge commit '6c31ba226968f12f898120dbb928dab34e03782b'

* commit '6c31ba226968f12f898120dbb928dab34e03782b':
  avformat/matroska: fix MatroskaVideoFieldOrder enum values

This commit is a noop, see dc781459cc1a927a944c709c4cb400bb953a4f45

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '20b75970e43a030f959b17ff2dfd561174b6f24e'
Clément Bœsch [Thu, 23 Mar 2017 15:40:15 +0000 (16:40 +0100)]
Merge commit '20b75970e43a030f959b17ff2dfd561174b6f24e'

* commit '20b75970e43a030f959b17ff2dfd561174b6f24e':
  file protocol: handle the file: protocol string in file_check

This commit is a noop, see 77015443a84bb5dbed38eafc2ea26a2bf2641ed6

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '7d8d726be7dc46343ab1c98c339c1ed44bcb07c1'
Clément Bœsch [Thu, 23 Mar 2017 15:37:58 +0000 (16:37 +0100)]
Merge commit '7d8d726be7dc46343ab1c98c339c1ed44bcb07c1'

* commit '7d8d726be7dc46343ab1c98c339c1ed44bcb07c1':
  rtmpproto: Don't include a client version in the unencrypted C1 handshake

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '9f23f77a532ca9c2b7dc4b5328bc413e4f6f5b56'
Clément Bœsch [Thu, 23 Mar 2017 15:37:31 +0000 (16:37 +0100)]
Merge commit '9f23f77a532ca9c2b7dc4b5328bc413e4f6f5b56'

* commit '9f23f77a532ca9c2b7dc4b5328bc413e4f6f5b56':
  rtmpproto: Don't include the libavformat version as "clientid"

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '8b5e0d17e70400eaf5dc3845b5c1df8b2b88d830'
Clément Bœsch [Thu, 23 Mar 2017 15:36:05 +0000 (16:36 +0100)]
Merge commit '8b5e0d17e70400eaf5dc3845b5c1df8b2b88d830'

* commit '8b5e0d17e70400eaf5dc3845b5c1df8b2b88d830':
  rtmpproto: Send chunk size on the network channel

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'd6ded94036e43a04889f4ff2813a7f7dd60b82fe'
Clément Bœsch [Thu, 23 Mar 2017 15:35:17 +0000 (16:35 +0100)]
Merge commit 'd6ded94036e43a04889f4ff2813a7f7dd60b82fe'

* commit 'd6ded94036e43a04889f4ff2813a7f7dd60b82fe':
  rtmpproto: Lengthen the filename buffer when receiving streams

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '7395784ba72742b6daa62d35db4028e09f3fdf06'
Clément Bœsch [Thu, 23 Mar 2017 15:34:19 +0000 (16:34 +0100)]
Merge commit '7395784ba72742b6daa62d35db4028e09f3fdf06'

* commit '7395784ba72742b6daa62d35db4028e09f3fdf06':
  rtmpproto: Check the return from ff_amf_read_string

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'c9527bf3444c5332fa04931d32997308784fc862'
Clément Bœsch [Thu, 23 Mar 2017 15:31:15 +0000 (16:31 +0100)]
Merge commit 'c9527bf3444c5332fa04931d32997308784fc862'

* commit 'c9527bf3444c5332fa04931d32997308784fc862':
  Make the RELEASE file match with the most recent tag

This commit is noop.

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '881477c77bb10c3c62fda111b0f1f3554968bc78'
Clément Bœsch [Thu, 23 Mar 2017 15:25:36 +0000 (16:25 +0100)]
Merge commit '881477c77bb10c3c62fda111b0f1f3554968bc78'

* commit '881477c77bb10c3c62fda111b0f1f3554968bc78':
  swscale: Add the GBRAP12 output
  Add GBRAP12 pixel format support
  swscale: Enable GBRP12 output
  swscale: x86: Add some forgotten 12-bit planar YUV cases
  swscale: Add input support for 12-bit formats

This merge is noop, these commits are recrafted cherry-picks from
FFmpeg.

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '1e93aa69a60815d1407a6c34d8da3f83ab193ad5'
Clément Bœsch [Thu, 23 Mar 2017 15:21:43 +0000 (16:21 +0100)]
Merge commit '1e93aa69a60815d1407a6c34d8da3f83ab193ad5'

* commit '1e93aa69a60815d1407a6c34d8da3f83ab193ad5':
  Add GBRP12 pixel format support

This commit is a noop, see e9757066e11a9acb98040489c1ffc8440cd74d0e

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'e7e5be8635c1cf0588d2a07e59374135de6da55a'
Clément Bœsch [Thu, 23 Mar 2017 15:08:49 +0000 (16:08 +0100)]
Merge commit 'e7e5be8635c1cf0588d2a07e59374135de6da55a'

* commit 'e7e5be8635c1cf0588d2a07e59374135de6da55a':
  APIchanges: Expand the name of recently added pixel formats

This commit is a noop, we don't have this entry.

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '14e7e19a90e9b45db7adeb4d40e7f16aa7404f28'
Clément Bœsch [Thu, 23 Mar 2017 15:03:43 +0000 (16:03 +0100)]
Merge commit '14e7e19a90e9b45db7adeb4d40e7f16aa7404f28'

* commit '14e7e19a90e9b45db7adeb4d40e7f16aa7404f28':
  lavc: bsf: Document input/output codecparam alloc/init process

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'eb542106029a9b28b4f76ff7c181eb4f542da9c4'
Clément Bœsch [Thu, 23 Mar 2017 15:02:11 +0000 (16:02 +0100)]
Merge commit 'eb542106029a9b28b4f76ff7c181eb4f542da9c4'

* commit 'eb542106029a9b28b4f76ff7c181eb4f542da9c4':
  swscale: Add missing yuv444p12 swapping

This commit is a noop, these pixel formats were introduced long ago and
present in the switch case.

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '112cee0241f5799edff0e4682b9e8639b046dc78'
Clément Bœsch [Thu, 23 Mar 2017 14:39:16 +0000 (15:39 +0100)]
Merge commit '112cee0241f5799edff0e4682b9e8639b046dc78'

* commit '112cee0241f5799edff0e4682b9e8639b046dc78':
  hevc: Add SSE2 and AVX IDCT

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoavcodec/videotoolboxenc: remove unused atomic header
James Almer [Wed, 22 Mar 2017 22:33:46 +0000 (19:33 -0300)]
avcodec/videotoolboxenc: remove unused atomic header

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/mediacodec: convert to stdatomic
James Almer [Wed, 22 Mar 2017 18:27:30 +0000 (15:27 -0300)]
avcodec/mediacodec: convert to stdatomic

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/h264_ps: Fix runtime error: signed integer overflow: 2147483647 + 26 cannot...
Michael Niedermayer [Tue, 21 Mar 2017 23:17:05 +0000 (00:17 +0100)]
avcodec/h264_ps: Fix runtime error: signed integer overflow: 2147483647 + 26 cannot be represented in type 'int'

Fixes: 902/clusterfuzz-testcase-4561155144024064

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/pictordec: runtime error: left shift of 15 by 28 places cannot be represented...
Michael Niedermayer [Tue, 21 Mar 2017 01:20:35 +0000 (02:20 +0100)]
avcodec/pictordec: runtime error: left shift of 15 by 28 places cannot be represented in type 'int'

Fixes: 898/clusterfuzz-testcase-6149765467209728

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/tiff: Check geotag count for being non zero
Michael Niedermayer [Tue, 21 Mar 2017 00:55:01 +0000 (01:55 +0100)]
avcodec/tiff: Check geotag count for being non zero

Fixes memleak
Fixes: 874/clusterfuzz-testcase-5252796175613952

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agohls: consistent use of user_agent
Jan Berkel [Fri, 17 Feb 2017 11:00:40 +0000 (12:00 +0100)]
hls: consistent use of user_agent

This came up while debugging a problem with mpv:
https://github.com/mpv-player/mpv/issues/4155

Signed-off-by: wm4 <nfxjfg@googlemail.com>
3 years agoMerge commit 'e3f941cb03b139b866a0ad6dc95fbe1b247d54af'
Clément Bœsch [Thu, 23 Mar 2017 11:17:39 +0000 (12:17 +0100)]
Merge commit 'e3f941cb03b139b866a0ad6dc95fbe1b247d54af'

* commit 'e3f941cb03b139b866a0ad6dc95fbe1b247d54af':
  checkasm: add a test for HEVC IDCT

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '9b2ccafb480c94fd09cfb24306d5296dc013cf5b'
Clément Bœsch [Thu, 23 Mar 2017 11:15:39 +0000 (12:15 +0100)]
Merge commit '9b2ccafb480c94fd09cfb24306d5296dc013cf5b'

* commit '9b2ccafb480c94fd09cfb24306d5296dc013cf5b':
  aarch64: Add missing sign extension in ff_h264_idct8_add_neon

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'cbd84b8a51aa656d71b7d6ed44bd89041ff081a8'
Clément Bœsch [Thu, 23 Mar 2017 11:11:05 +0000 (12:11 +0100)]
Merge commit 'cbd84b8a51aa656d71b7d6ed44bd89041ff081a8'

* commit 'cbd84b8a51aa656d71b7d6ed44bd89041ff081a8':
  nvenc: Fix error log

This commit is a noop, the error message is correct in FFmpeg.

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'da2848375a2e2121dad9f1e8cbd0ead4e3bf77d6'
Clément Bœsch [Thu, 23 Mar 2017 11:08:22 +0000 (12:08 +0100)]
Merge commit 'da2848375a2e2121dad9f1e8cbd0ead4e3bf77d6'

* commit 'da2848375a2e2121dad9f1e8cbd0ead4e3bf77d6':
  nvenc: Force high_444 profile for 444 input

This commit is a noop, see 20abda6b626c0efe1df298eab697d61ba52669c3

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'e4128c08d786eb5513578e8c6063671ba03226ab'
Clément Bœsch [Thu, 23 Mar 2017 11:03:25 +0000 (12:03 +0100)]
Merge commit 'e4128c08d786eb5513578e8c6063671ba03226ab'

* commit 'e4128c08d786eb5513578e8c6063671ba03226ab':
  Revert "hevc: x86: Refactor IDCT macro declarations"

So apparently this was technically correct be reverted due to
authorship. Reverted as well in FFmpeg for now...

See http://lists.libav.org/pipermail/libav-devel/2016-October/079560.html

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '5801f9ed245ca5ebb57b0b5183de7a24aaece133'
Clément Bœsch [Thu, 23 Mar 2017 10:58:01 +0000 (11:58 +0100)]
Merge commit '5801f9ed245ca5ebb57b0b5183de7a24aaece133'

* commit '5801f9ed245ca5ebb57b0b5183de7a24aaece133':
  h264_intrapred: x86: Update comments left behind in 95c89da36ebeeb96b7146c0d70f46c582397da7f

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '20abcaa273a6e77d0a2e1a98c643c73562c6f8f2'
Clément Bœsch [Thu, 23 Mar 2017 10:56:55 +0000 (11:56 +0100)]
Merge commit '20abcaa273a6e77d0a2e1a98c643c73562c6f8f2'

* commit '20abcaa273a6e77d0a2e1a98c643c73562c6f8f2':
  configure: #include stdint.h as part of libxavs test

This commit is a noop, see 20c4fb2e010fff7e3f8acd36ad132c0140fec5fb

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'd9dccc03890a976dba59d66ed3b5aceeaa33d14c'
Clément Bœsch [Thu, 23 Mar 2017 10:54:53 +0000 (11:54 +0100)]
Merge commit 'd9dccc03890a976dba59d66ed3b5aceeaa33d14c'

* commit 'd9dccc03890a976dba59d66ed3b5aceeaa33d14c':
  hevc: x86: Refactor IDCT macro declarations

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'be630b1e08ebe8f766b1798accd6b8e5e096f5aa'
Clément Bœsch [Thu, 23 Mar 2017 10:47:13 +0000 (11:47 +0100)]
Merge commit 'be630b1e08ebe8f766b1798accd6b8e5e096f5aa'

* commit 'be630b1e08ebe8f766b1798accd6b8e5e096f5aa':
  d3d11va: Use the proper decoding slice index

This commit is a noop, see 9b462a0b9df6260f59726c98d8aef8b07a1e442b

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '715f139c9bd407ef7f4d1f564ad683140ec61e6d'
Clément Bœsch [Thu, 23 Mar 2017 10:41:47 +0000 (11:41 +0100)]
Merge commit '715f139c9bd407ef7f4d1f564ad683140ec61e6d'

* commit '715f139c9bd407ef7f4d1f564ad683140ec61e6d': (23 commits)
  vp9lpf/x86: make filter_16_h work on 32-bit.
  vp9lpf/x86: make filter_48/84/88_h work on 32-bit.
  vp9lpf/x86: make filter_44_h work on 32-bit.
  vp9lpf/x86: make filter_16_v work on 32-bit.
  vp9lpf/x86: make filter_48/84_v work on 32-bit.
  vp9lpf/x86: make filter_88_v work on 32-bit.
  vp9lpf/x86: make filter_44_v work on 32-bit.
  vp9lpf/x86: save one register in SIGN_ADD/SUB.
  vp9lpf/x86: store unpacked intermediates for filter6/14 on stack.
  vp9lpf/x86: move variable assigned inside macro branch.
  vp9lpf/x86: simplify ABSSUM_CMP by inverting the comparison meaning.
  vp9lpf/x86: remove unused register from ABSSUB_CMP macro.
  vp9lpf/x86: slightly simplify 44/48/84/88 h stores.
  vp9lpf/x86: make cglobal statement more conservative in register allocation.
  vp9lpf/x86: save one register in loopfilter surface coverage.
  vp9lpf/x86: add ff_vp9_loop_filter_[vh]_44_16_{sse2,ssse3,avx}.
  vp9lpf/x86: add ff_vp9_loop_filter_h_{48,84}_16_{sse2,ssse3,avx}().
  vp9lpf/x86: add an SSE2 version of vp9_loop_filter_[vh]_88_16
  vp9lpf/x86: add ff_vp9_loop_filter_[vh]_88_16_{ssse3,avx}.
  vp9lpf/x86: add ff_vp9_loop_filter_[vh]_16_16_sse2().
  ...

All these commits are cherry-picks from FFmpeg. Maybe some slight
differences sneaked in but the Libav codebase still differs too much
with our own to make a proper diff. This merge is a noop.

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'dc3fe45fca9c10c4af6bfcf48eb7b81968892ef9'
Clément Bœsch [Thu, 23 Mar 2017 10:40:09 +0000 (11:40 +0100)]
Merge commit 'dc3fe45fca9c10c4af6bfcf48eb7b81968892ef9'

* commit 'dc3fe45fca9c10c4af6bfcf48eb7b81968892ef9':
  fate: Add test for rscc palette

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'c19830aa2c19f9713b612f7e2fdb437df91ba266'
Clément Bœsch [Thu, 23 Mar 2017 10:33:27 +0000 (11:33 +0100)]
Merge commit 'c19830aa2c19f9713b612f7e2fdb437df91ba266'

* commit 'c19830aa2c19f9713b612f7e2fdb437df91ba266':
  rscc: Support palette format

See 11777eb8142117864bff0c8060f17b4089434143

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'b8d5070db6313f985562865edcfd08a01c2d7503'
Clément Bœsch [Thu, 23 Mar 2017 10:27:41 +0000 (11:27 +0100)]
Merge commit 'b8d5070db6313f985562865edcfd08a01c2d7503'

* commit 'b8d5070db6313f985562865edcfd08a01c2d7503':
  avcodec: Document AV_PKT_DATA_PALETTE side data type

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '497c087939e32b26b792515d2dbc7e22561203f7'
Clément Bœsch [Thu, 23 Mar 2017 10:27:12 +0000 (11:27 +0100)]
Merge commit '497c087939e32b26b792515d2dbc7e22561203f7'

* commit '497c087939e32b26b792515d2dbc7e22561203f7':
  avidec: Set palette alpha as fully opaque

This commit is a noop, see 64cafe340bd5ddfe704efa95cd9f21471ca12a12

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'bad4aad4037f59ba0ad656164be9ab8f7a0fa2d4'
Clément Bœsch [Thu, 23 Mar 2017 10:26:20 +0000 (11:26 +0100)]
Merge commit 'bad4aad4037f59ba0ad656164be9ab8f7a0fa2d4'

* commit 'bad4aad4037f59ba0ad656164be9ab8f7a0fa2d4':
  avidec: Do not special case palette on big-endian

This commit is a noop, see 64cafe340bd5ddfe704efa95cd9f21471ca12a12

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '310c55f1799deab395319471a75c528d0fa7b30d'
Clément Bœsch [Thu, 23 Mar 2017 10:22:32 +0000 (11:22 +0100)]
Merge commit '310c55f1799deab395319471a75c528d0fa7b30d'

* commit '310c55f1799deab395319471a75c528d0fa7b30d':
  pixfmt: Document alternative names for smpte 431 and 432

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '5a5df90d9c05d86d9b0564b8b40b6d64a324df5e'
Clément Bœsch [Thu, 23 Mar 2017 10:20:34 +0000 (11:20 +0100)]
Merge commit '5a5df90d9c05d86d9b0564b8b40b6d64a324df5e'

* commit '5a5df90d9c05d86d9b0564b8b40b6d64a324df5e':
  vaapi_h265: Add main 10 encode support

This commit is a noop, see b9514756ba2b4f764fb86500a8172a57acb58403

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'eaaaabf6c93321cdb78bf61dc383cf515ec12e07'
Clément Bœsch [Thu, 23 Mar 2017 10:19:25 +0000 (11:19 +0100)]
Merge commit 'eaaaabf6c93321cdb78bf61dc383cf515ec12e07'

* commit 'eaaaabf6c93321cdb78bf61dc383cf515ec12e07':
  hwcontext_vaapi: Enable P010 support

This commit is a noop, see 7e0623b70ba79df6b07e71a810f495ce7e5886f8

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'b8cac1e83066aa87e8402c146c81b77a11b5eec3'
Clément Bœsch [Thu, 23 Mar 2017 10:16:11 +0000 (11:16 +0100)]
Merge commit 'b8cac1e83066aa87e8402c146c81b77a11b5eec3'

* commit 'b8cac1e83066aa87e8402c146c81b77a11b5eec3':
  vaapi_h265: Fix buffering parameters
  vaapi_h265: Fix slice header writing
  vaapi_h264: Write bitstream restriction fields
  vaapi_h264: Fix CFR mode with frame_rate set in AVCodecContext
  vaapi_encode: Decide on GOP setup before initialising sequence parameters

This merge is a noop, see:
  30ebabca7c vaapi_h265: Fix buffering parameters
  ae0230cc3e vaapi_h265: Fix slice header writing
  6796e6ea84 vaapi_h264: Write bitstream restriction fields
  658c5afaa0 vaapi_h264: Fix CFR mode with frame_rate set in AVCodecContext
  ded1859df1 vaapi_encode: Decide on GOP setup before initialising sequence parameters

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '5cc0057f4910c8c72421b812c8f337ef6c43696c'
Clément Bœsch [Thu, 23 Mar 2017 10:12:05 +0000 (11:12 +0100)]
Merge commit '5cc0057f4910c8c72421b812c8f337ef6c43696c'

* commit '5cc0057f4910c8c72421b812c8f337ef6c43696c':
  lavu: remove the custom atomic API

This commit is a noop. The removal is postponed until all usages in
FFmpeg are dropped as well. A patchset is on discussion on the
mailing-list:
http://ffmpeg.org/pipermail/ffmpeg-devel/2017-March/209003.html

Merged-by: Clément Bœsch <u@pkh.me>
3 years agolavc: vdpau: Add support for new hw_frames_ctx and hw_device_ctx API
wm4 [Sat, 4 Mar 2017 23:57:33 +0000 (23:57 +0000)]
lavc: vdpau: Add support for new hw_frames_ctx and hw_device_ctx API

This supports retrieving the device from a provided hw_frames_ctx, and
automatically creating a hw_frames_ctx if hw_device_ctx is set.

The old API is not deprecated yet. The user can still use
av_vdpau_bind_context() (with or without setting hw_frames_ctx), or use
the API before that by allocating and setting hwaccel_context manually.

Cherry-picked from Libav commit 1a7ddba5.
(Adds missing APIchanges entry to the Libav version.)

Reviewed-by: Mark Thompson <sw@jkqxz.net>
3 years agolavc: Add hwaccel_flags field to AVCodecContext
wm4 [Sat, 4 Mar 2017 23:57:32 +0000 (23:57 +0000)]
lavc: Add hwaccel_flags field to AVCodecContext

This "reuses" the flags introduced for the av_vdpau_bind_context() API
function, and makes them available to all hwaccels. This does not affect
the current vdpau API, as av_vdpau_bind_context() should obviously
override the AVCodecContext.hwaccel_flags flags for the sake of
compatibility.

Cherry-picked from Libav commit 16a163b5.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
3 years agoavcodec/lossless_videodsp: use ptrdiff_t for length parameters
James Almer [Wed, 22 Mar 2017 21:27:53 +0000 (18:27 -0300)]
avcodec/lossless_videodsp: use ptrdiff_t for length parameters

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agovaapi_vp9: Mark as async-safe
Mark Thompson [Tue, 21 Mar 2017 22:31:21 +0000 (22:31 +0000)]
vaapi_vp9: Mark as async-safe

3 years agovaapi_hevc: Mark as async-safe
Mark Thompson [Tue, 21 Mar 2017 22:31:04 +0000 (22:31 +0000)]
vaapi_hevc: Mark as async-safe

3 years agovaapi: Implement device-only setup
Mark Thompson [Sat, 11 Feb 2017 15:13:12 +0000 (15:13 +0000)]
vaapi: Implement device-only setup

In this case, the user only supplies a device and the frame context
is allocated internally by lavc.

(cherry picked from commit 5dd9a4b88b287bf8c93520afda7becb1ad0d1894)

3 years agoPlace attribute_deprecated in the right position for struct declarations
Diego Biurrun [Wed, 22 Feb 2017 10:39:21 +0000 (11:39 +0100)]
Place attribute_deprecated in the right position for struct declarations

libavcodec/vaapi.h:58:1: warning: attribute 'deprecated' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]

(cherry picked from commit ed6a891c364f8b0850b557d9578b8920cc15a937)
Signed-off-by: Mark Thompson <sw@jkqxz.net>
3 years agolavc/hevc: use atomics for wpp_err
Clément Bœsch [Wed, 22 Mar 2017 17:23:17 +0000 (18:23 +0100)]
lavc/hevc: use atomics for wpp_err

3 years agomdct15: fix left shift of a negative value
Rostislav Pehlivanov [Wed, 22 Mar 2017 17:17:04 +0000 (17:17 +0000)]
mdct15: fix left shift of a negative value

Should fix Chromium issue 704064.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
3 years agolavc/bitstream_filter: remove unused atomic.h include
Clément Bœsch [Wed, 22 Mar 2017 17:17:44 +0000 (18:17 +0100)]
lavc/bitstream_filter: remove unused atomic.h include

3 years agolavc/bitstream: remove unused atomic.h include
Clément Bœsch [Wed, 22 Mar 2017 17:16:58 +0000 (18:16 +0100)]
lavc/bitstream: remove unused atomic.h include

3 years agoMerge commit '59c70227405c214b29971e6272f3a3ff6fcce3d0'
Clément Bœsch [Wed, 22 Mar 2017 17:13:47 +0000 (18:13 +0100)]
Merge commit '59c70227405c214b29971e6272f3a3ff6fcce3d0'

* commit '59c70227405c214b29971e6272f3a3ff6fcce3d0':
  pthread_frame: use atomics for frame progress

This commit is a noop, see b6587421c7799f18038c7c802b62d034ede52f8f

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '64a31b2854c589e4f27cd68ebe3bcceb915704e5'
Clément Bœsch [Wed, 22 Mar 2017 17:12:21 +0000 (18:12 +0100)]
Merge commit '64a31b2854c589e4f27cd68ebe3bcceb915704e5'

* commit '64a31b2854c589e4f27cd68ebe3bcceb915704e5':
  pthread_frame: use atomics for PerThreadContext.state

This commit is a noop, see 749262693247808e2db5a2eb29a11ad3cfec211c

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'db2733256db323e4b88a34b135320f33274148e2'
Clément Bœsch [Wed, 22 Mar 2017 17:09:54 +0000 (18:09 +0100)]
Merge commit 'db2733256db323e4b88a34b135320f33274148e2'

* commit 'db2733256db323e4b88a34b135320f33274148e2':
  pthread_frame: use a thread-safe way for signalling threads to die

This commit is a noop, see 4845f0720e38c5baab7baad52bfce1451f1c1639

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '8385ba53f115401a67a4748c0d107769ebfb2941'
Clément Bœsch [Wed, 22 Mar 2017 17:01:51 +0000 (18:01 +0100)]
Merge commit '8385ba53f115401a67a4748c0d107769ebfb2941'

* commit '8385ba53f115401a67a4748c0d107769ebfb2941':
  mmaldec: convert to stdatomic

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '3a165c187da7d74f46f6c1778294e8c5a3a7151f'
Clément Bœsch [Wed, 22 Mar 2017 16:55:18 +0000 (17:55 +0100)]
Merge commit '3a165c187da7d74f46f6c1778294e8c5a3a7151f'

* commit '3a165c187da7d74f46f6c1778294e8c5a3a7151f':
  v4l2: convert to stdatomic

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '27079a426c9d3db918b158976e44b9b143d78e1c'
Clément Bœsch [Wed, 22 Mar 2017 16:46:01 +0000 (17:46 +0100)]
Merge commit '27079a426c9d3db918b158976e44b9b143d78e1c'

* commit '27079a426c9d3db918b158976e44b9b143d78e1c':
  buffer: convert to stdatomic

Merged-by: Clément Bœsch <u@pkh.me>
3 years agolavu/buffer: drop USE_ATOMICS
Clément Bœsch [Wed, 22 Mar 2017 16:31:15 +0000 (17:31 +0100)]
lavu/buffer: drop USE_ATOMICS

USE_ATOMICS is only set if there is no thread implementation enabled, in
which case you can't expect any lock mechanism from FFmpeg.

This is also conflicting with the incoming use of stdatomic.

3 years agoMerge commit 'eb34d40354e2474517c9b9bd787e0dadc89c2a81'
Clément Bœsch [Wed, 22 Mar 2017 15:42:53 +0000 (16:42 +0100)]
Merge commit 'eb34d40354e2474517c9b9bd787e0dadc89c2a81'

* commit 'eb34d40354e2474517c9b9bd787e0dadc89c2a81':
  Add a compat dummy stdatomic.h used when threading is disabled
  Add a compat stdatomic.h implementation based on pthreads
  Add a compat stdatomic.h implementation based on suncc atomics
  Add a compat stdatomic.h implementation based on windows atomics
  Add a compat stdatomic.h implementation based on GCC atomics

This merge is a noop, see:
  41e891e89e Add a compat dummy stdatomic.h used when threading is disabled
  74b5f10862 Add a compat stdatomic.h implementation based on pthreads
  70faadc826 Add a compat stdatomic.h implementation based on suncc atomics
  c91e72ed52 Add a compat stdatomic.h implementation based on windows atomics
  3359eede8f Add a compat stdatomic.h implementation based on GCC atomics

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '13f5d2bf75b95a0bfdb9940a5e359a719e242bed'
Clément Bœsch [Wed, 22 Mar 2017 15:41:29 +0000 (16:41 +0100)]
Merge commit '13f5d2bf75b95a0bfdb9940a5e359a719e242bed'

* commit '13f5d2bf75b95a0bfdb9940a5e359a719e242bed':
  configure: check for stdatomic.h

This commit is a noop, see 6a4e24280dd7f15c41628ebfb01ee25661d8b258

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'b015872c0d0823e70776e98b865509ec1287e2f6'
Clément Bœsch [Wed, 22 Mar 2017 15:37:30 +0000 (16:37 +0100)]
Merge commit 'b015872c0d0823e70776e98b865509ec1287e2f6'

* commit 'b015872c0d0823e70776e98b865509ec1287e2f6':
  huffyuvdsp: Enable the altivec code for PPC little-endian as well

This commit is a noop, see 902ce2a6c4364fd27ae3f1db78cd275caf79c006 and
libavcodec/ppc/lossless_videodsp_altivec.c

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '1d25a86902946dbc80bb3a38e61755181ca3af7b'
Clément Bœsch [Wed, 22 Mar 2017 15:35:13 +0000 (16:35 +0100)]
Merge commit '1d25a86902946dbc80bb3a38e61755181ca3af7b'

* commit '1d25a86902946dbc80bb3a38e61755181ca3af7b':
  huffyuvdsp: Reenable PPC optimizations

This commit is a noop, see 6596b34954fc2c101fe620a4b4d305bf27315013

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '22c3ab18646924ce24dc6017a9e882ff69689e40'
Clément Bœsch [Wed, 22 Mar 2017 15:29:44 +0000 (16:29 +0100)]
Merge commit '22c3ab18646924ce24dc6017a9e882ff69689e40'

* commit '22c3ab18646924ce24dc6017a9e882ff69689e40':
  checkasm: Add test for huffyuvdsp add_bytes

huffyuvdsp is renamed to llviddsp to be consistent with our codebase.

Note: af607b7e07 wasn't actually required for this test since this
commit is not actually testing huffyuvdsp.

Merged-by: Clément Bœsch <u@pkh.me>
3 years agolavc/huffyuvdsp: only transmit the pix_fmt instead of the whole avctx
Clément Bœsch [Wed, 22 Mar 2017 15:21:20 +0000 (16:21 +0100)]
lavc/huffyuvdsp: only transmit the pix_fmt instead of the whole avctx

Only the pixel format is required in that init function. This will also
simplify the incoming merge.

3 years agolavc/huffyuvdsp: remove unused ppc init prototype
Clément Bœsch [Wed, 22 Mar 2017 15:15:42 +0000 (16:15 +0100)]
lavc/huffyuvdsp: remove unused ppc init prototype

3 years agoMerge commit '27085d1b47c3741cc0fac284c916127c4066d049'
Clément Bœsch [Wed, 22 Mar 2017 15:02:51 +0000 (16:02 +0100)]
Merge commit '27085d1b47c3741cc0fac284c916127c4066d049'

* commit '27085d1b47c3741cc0fac284c916127c4066d049':
  avconv: only retry decoding on actual decoding errors

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'f6772e9bf8251d3943f52f6f34d97d2ce6c4b8af'
Clément Bœsch [Wed, 22 Mar 2017 14:53:38 +0000 (15:53 +0100)]
Merge commit 'f6772e9bf8251d3943f52f6f34d97d2ce6c4b8af'

* commit 'f6772e9bf8251d3943f52f6f34d97d2ce6c4b8af':
  avconv: make sure the filtergraph is freed on init failure

This commit is a noop, see 16abc10b0997c76cbb0c0ebedc49f6bc21452f9d

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'd10102d23c9467d4eb84f58e0cd12be284b982f6'
Clément Bœsch [Wed, 22 Mar 2017 14:50:37 +0000 (15:50 +0100)]
Merge commit 'd10102d23c9467d4eb84f58e0cd12be284b982f6'

* commit 'd10102d23c9467d4eb84f58e0cd12be284b982f6':
  avconv: set the encoding framerate when the output is CFR

This commit is a noop, see 8db301deadfcf113fb274881e65afcbe3e1bd645

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '5bf2454e7cb03609b3ec1a3cf4c22427fe5f8e36'
Clément Bœsch [Wed, 22 Mar 2017 14:49:13 +0000 (15:49 +0100)]
Merge commit '5bf2454e7cb03609b3ec1a3cf4c22427fe5f8e36'

* commit '5bf2454e7cb03609b3ec1a3cf4c22427fe5f8e36':
  h264dec: support broken files with mp4 extradata/annex b data

This commit is a noop, see 93b89868e139e9b45dfc8a62b4f8e1832bbfd5d8

The sample pointed out on
https://github.com/HandBrake/HandBrake/issues/339 decodes fine in
FFmpeg.

Merged-by: Clément Bœsch <u@pkh.me>
3 years agofate: update ref file for apng-clock test
James Almer [Wed, 22 Mar 2017 13:27:46 +0000 (10:27 -0300)]
fate: update ref file for apng-clock test

3 years agoMerge commit '2124711b950b03c582a119c75f52a87acc32d6ec'
Clément Bœsch [Wed, 22 Mar 2017 11:59:20 +0000 (12:59 +0100)]
Merge commit '2124711b950b03c582a119c75f52a87acc32d6ec'

* commit '2124711b950b03c582a119c75f52a87acc32d6ec':
  hwcontext_vaapi: add a quirk for the missing MemoryType attribute

This commit is a noop, see 775a8477b74bb2fa95ca2b13c08f3fd8d6c617b6

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit 'b57e38f52cc3f31a27105c28887d57cd6812c3eb'
Clément Bœsch [Wed, 22 Mar 2017 11:44:49 +0000 (12:44 +0100)]
Merge commit 'b57e38f52cc3f31a27105c28887d57cd6812c3eb'

* commit 'b57e38f52cc3f31a27105c28887d57cd6812c3eb':
  ac3dsp: x86: Replace inline asm for in-decoder downmixing with standalone asm

Merged-by: Clément Bœsch <u@pkh.me>
3 years agolavc/mips: temporally disable ac3 downmix
Clément Bœsch [Wed, 22 Mar 2017 10:46:13 +0000 (11:46 +0100)]
lavc/mips: temporally disable ac3 downmix

3 years agodoc/libav-merge: create a special "extra changes" section
Clément Bœsch [Wed, 22 Mar 2017 10:42:42 +0000 (11:42 +0100)]
doc/libav-merge: create a special "extra changes" section

3 years agoMerge commit 'a9ba59591ed509fb7e6decfde8da4cbfd4ddf4b8'
Clément Bœsch [Wed, 22 Mar 2017 10:30:53 +0000 (11:30 +0100)]
Merge commit 'a9ba59591ed509fb7e6decfde8da4cbfd4ddf4b8'

* commit 'a9ba59591ed509fb7e6decfde8da4cbfd4ddf4b8':
  ac3dsp: Add some special-case handling for the C downmix function

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoMerge commit '43717469f9daa402f6acb48997255827a56034e9'
Clément Bœsch [Wed, 22 Mar 2017 10:11:28 +0000 (11:11 +0100)]
Merge commit '43717469f9daa402f6acb48997255827a56034e9'

* commit '43717469f9daa402f6acb48997255827a56034e9':
  ac3dsp: Reverse matrix in/out order in downmix()

Merged-by: Clément Bœsch <u@pkh.me>
3 years agoavformat/rtmpproto: change rtmp_open from url_open to url_open2
Steven Liu [Wed, 22 Mar 2017 10:06:14 +0000 (18:06 +0800)]
avformat/rtmpproto: change rtmp_open from url_open to url_open2

use the option set by user

Reported-by: Lancelot Lai <laihy23@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
3 years agox86/audiodsp: remove an unnecessary movss
James Almer [Wed, 22 Mar 2017 03:14:56 +0000 (00:14 -0300)]
x86/audiodsp: remove an unnecessary movss

3 years agoavdevice/decklink: new option 'format_code' to set video format by fourCC
Matthias Hunstock [Sun, 19 Mar 2017 23:16:37 +0000 (00:16 +0100)]
avdevice/decklink: new option 'format_code' to set video format by fourCC

Signed-off-by: Matthias Hunstock <atze@fem.tu-ilmenau.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoavdevice/decklink: add format_code of display mode to list_format output
Matthias Hunstock [Sun, 19 Mar 2017 23:16:36 +0000 (00:16 +0100)]
avdevice/decklink: add format_code of display mode to list_format output

Signed-off-by: Matthias Hunstock <atze@fem.tu-ilmenau.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agohwcontext: fix comments for av_hwdevice_ctx_alloc()
Jun Zhao [Sun, 19 Mar 2017 07:44:46 +0000 (15:44 +0800)]
hwcontext: fix comments for av_hwdevice_ctx_alloc()

fix the wrong comments for av_hwdevice_ctx_alloc()

Signed-off-by: Jun Zhao <jun.zhao@intel.com>
Signed-off-by: Mark Thompson <sw@jkqxz.net>
3 years agoavcodec/avcodec.h: clarify decoupled decode/encode API docs
Marton Balint [Wed, 15 Mar 2017 00:00:57 +0000 (01:00 +0100)]
avcodec/avcodec.h: clarify decoupled decode/encode API docs

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoavformat/apng: set max_fps to no limit by default
James Almer [Tue, 21 Mar 2017 01:55:11 +0000 (22:55 -0300)]
avformat/apng: set max_fps to no limit by default

Should fix ticket #6252

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/apng: fix setting frame delay when max_fps is set to no limit
James Almer [Tue, 21 Mar 2017 01:53:00 +0000 (22:53 -0300)]
avformat/apng: fix setting frame delay when max_fps is set to no limit

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavutil/x86util: don't use movss in VBROADCASTSS macro when src and dst args are the...
James Almer [Mon, 20 Mar 2017 22:39:49 +0000 (19:39 -0300)]
avutil/x86util: don't use movss in VBROADCASTSS macro when src and dst args are the same

Reviewed-by: Henrik Gramner <henrik@gramner.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoMerge commit '8ea35af7620e4f73f9e8c072e1c0fac9a04ec161'
James Almer [Tue, 21 Mar 2017 20:07:44 +0000 (17:07 -0300)]
Merge commit '8ea35af7620e4f73f9e8c072e1c0fac9a04ec161'

* commit '8ea35af7620e4f73f9e8c072e1c0fac9a04ec161':
  avio: add a new flag for marking streams seekable by timestamp

Merged-by: James Almer <jamrial@gmail.com>