ffmpeg.git
4 years agolavf/aiffdec: Support QDMC demuxing.
Carl Eugen Hoyos [Sun, 3 Jul 2016 02:37:48 +0000 (04:37 +0200)]
lavf/aiffdec: Support QDMC demuxing.

4 years agolibopusenc: Add channel mapping family argument
Michael Graczyk [Wed, 15 Jun 2016 01:33:15 +0000 (18:33 -0700)]
libopusenc: Add channel mapping family argument

The default value of -1 indicates that ffmpeg should determine the channel
mapping automatically, which was the behavior before this commit.

Unless the -mapping_family argument is provided, behavior is unchanged.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibopusenc: Refactor to simplify forthcoming mapping_family parameter
Michael Graczyk [Wed, 15 Jun 2016 01:30:36 +0000 (18:30 -0700)]
libopusenc: Refactor to simplify forthcoming mapping_family parameter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotests/checkasm/pixblockdsp: Test 8 byte aligned positions
Michael Niedermayer [Mon, 27 Jun 2016 20:03:14 +0000 (22:03 +0200)]
tests/checkasm/pixblockdsp: Test 8 byte aligned positions

The code is documented as to require 8byte alignment

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotests/fate: Add test for ticket 3386 ([H264] [Regression] illegal short term buffer...
Michael Niedermayer [Fri, 1 Jul 2016 17:23:27 +0000 (19:23 +0200)]
tests/fate: Add test for ticket 3386 ([H264] [Regression] illegal short term buffer state detected)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/h264_parser: Set sps/pps_ref
Michael Niedermayer [Sat, 2 Jul 2016 01:06:27 +0000 (03:06 +0200)]
avcodec/h264_parser: Set sps/pps_ref

Fixes use of freed memory
Should fix valgrind failures of fate-h264-skip-nointra

Found-by: logan
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/h264_slice: Only call ff_h264_flush_change() on initialized contexts
James Almer [Fri, 1 Jul 2016 18:59:41 +0000 (20:59 +0200)]
avcodec/h264_slice: Only call ff_h264_flush_change() on initialized contexts

Changed by committer to ensure context_initialized is reset
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate/webp : add test for lossless picture to improve cover
Martin Vignali [Wed, 29 Jun 2016 10:41:11 +0000 (12:41 +0200)]
fate/webp : add test for lossless picture to improve cover

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMerge commit '6e92181bf836f48627a4733b6fd240a99fd36365'
Clément Bœsch [Fri, 1 Jul 2016 12:23:38 +0000 (14:23 +0200)]
Merge commit '6e92181bf836f48627a4733b6fd240a99fd36365'

* commit '6e92181bf836f48627a4733b6fd240a99fd36365':
  h264: pass just the PPS to get_chroma_qp()

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit 'd1f539c97e04e7cebecaf6916c5064f243d39fcf'
Clément Bœsch [Fri, 1 Jul 2016 12:17:56 +0000 (14:17 +0200)]
Merge commit 'd1f539c97e04e7cebecaf6916c5064f243d39fcf'

* commit 'd1f539c97e04e7cebecaf6916c5064f243d39fcf':
  h264: merge the two reinit blocks in slice_header_parse()

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '3fba16ecd978d5bed338b8da643c3435e62b3437'
Clément Bœsch [Fri, 1 Jul 2016 12:02:00 +0000 (14:02 +0200)]
Merge commit '3fba16ecd978d5bed338b8da643c3435e62b3437'

* commit '3fba16ecd978d5bed338b8da643c3435e62b3437':
  h264: factor starting a new field out of parsing the slice header

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agodoc/APIchanges: fill in missing git hash
Michael Niedermayer [Fri, 1 Jul 2016 00:42:03 +0000 (02:42 +0200)]
doc/APIchanges: fill in missing git hash

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agodoc/APIchanges: document the lavu/lavf field moves
Michael Niedermayer [Thu, 30 Jun 2016 16:12:41 +0000 (18:12 +0200)]
doc/APIchanges: document the lavu/lavf field moves

Based-on: patch by James Almer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/avformat: Move new field to the end of AVStream
Michael Niedermayer [Thu, 30 Jun 2016 12:02:26 +0000 (14:02 +0200)]
avformat/avformat: Move new field to the end of AVStream

This fixes part of Ticket5676
This fixes kodi, mpv, chromium and ffplay build against 3.0 and linked to 3.1

This is a similar ABI fix to 1eb43af1a0e542ad83dcbf327197785d815fc42d

Approved-by: BBB
Approved-by: jamrial
Approved-by: BtbN
Approved-by: nevcairiel
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/utils: update deprecated AVStream->codec when the context is updated
Hendrik Leppkes [Thu, 30 Jun 2016 12:10:42 +0000 (14:10 +0200)]
avformat/utils: update deprecated AVStream->codec when the context is updated

This ensures the AVStream->codec entry is kept in sync when new streams are
discovered mid-playback or changes to the context occur from other sources.

Fixes trac 5678.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavutil/frame: Move new field to the end of AVFrame
Michael Niedermayer [Thu, 30 Jun 2016 12:02:27 +0000 (14:02 +0200)]
avutil/frame: Move new field to the end of AVFrame

This fixes part of Ticket5676
This fixes kodi, mpv, chromium and ffplay build against 3.0 and linked to 3.1

This is a similar ABI fix to 1eb43af1a0e542ad83dcbf327197785d815fc42d

Approved-by: BBB
Approved-by: jamrial
Approved-by: BtbN
Approved-by: nevcairiel
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibavcodec/exr : fix decoding piz float file.
Martin Vignali [Tue, 28 Jun 2016 11:23:43 +0000 (13:23 +0200)]
libavcodec/exr : fix decoding piz float file.

fix ticket #5674

the size of data to process in piz_uncompress, is now calc
using the pixel type of each channel.

the data reorganization, alos take care about the size of
each channel

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoPPC64: Add versions of functions in libswscale/input.c optimized for POWER8 VSX SIMD.
Dan Parrot [Wed, 29 Jun 2016 16:15:12 +0000 (16:15 +0000)]
PPC64: Add versions of functions in libswscale/input.c optimized for POWER8 VSX SIMD.

This patch addresses Trac ticket #5570. The optimized functions are in file
libswscale/ppc/input_vsx.c. Each optimized function name is a concatenation of the
corresponding name in libswscale/input.c with suffix _vsx.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/mov: Skip non-key frames if AVDISCARD_NONKEY is set.
Vadim Kalinsky [Tue, 28 Jun 2016 18:09:46 +0000 (14:09 -0400)]
avformat/mov: Skip non-key frames if AVDISCARD_NONKEY is set.

Github: Closes #222

4 years agoMerge commit 'bec993381cfec72051b0d9f12ac9d9bb9c750983'
Clément Bœsch [Thu, 30 Jun 2016 08:24:03 +0000 (10:24 +0200)]
Merge commit 'bec993381cfec72051b0d9f12ac9d9bb9c750983'

* commit 'bec993381cfec72051b0d9f12ac9d9bb9c750983':
  h264: postpone generating the implicit MMCOs

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '2d410ebbaa1e760d6837cb434a6d1d4c3c6f0d85'
Clément Bœsch [Thu, 30 Jun 2016 08:15:51 +0000 (10:15 +0200)]
Merge commit '2d410ebbaa1e760d6837cb434a6d1d4c3c6f0d85'

* commit '2d410ebbaa1e760d6837cb434a6d1d4c3c6f0d85':
  h264: decode the MMCOs into per-slice contexts

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoh264: make H264ParamSets sps const
Benoit Fouet [Tue, 21 Jun 2016 12:17:13 +0000 (14:17 +0200)]
h264: make H264ParamSets sps const

4 years agoh264: straighten dimensions check ff_h264_decode_seq_parameter_set
Benoit Fouet [Mon, 27 Jun 2016 11:31:21 +0000 (13:31 +0200)]
h264: straighten dimensions check ff_h264_decode_seq_parameter_set

The MBS only flag was not taken into account when checking macroblock dimensions.
Also removes the unneeded check in init_dimensions for slices.

4 years agoh264_ps: change decode_scaling_matrices so that it takes const {s,p}ps
Benoit Fouet [Mon, 27 Jun 2016 10:00:39 +0000 (12:00 +0200)]
h264_ps: change decode_scaling_matrices so that it takes const {s,p}ps

In order to be able to make SPS const in H264ParamSets,
modify decode_scaling_matrices so that it returns if the scaling
matrix are present in the SPS, instead of altering the input SPS
structure.

4 years agoMerge commit '39ab2ea53121b9976a619cd545fbd3464b908696'
Clément Bœsch [Wed, 29 Jun 2016 18:07:52 +0000 (20:07 +0200)]
Merge commit '39ab2ea53121b9976a619cd545fbd3464b908696'

* commit '39ab2ea53121b9976a619cd545fbd3464b908696':
  h264: rename mmco_index to nb_mmco

Merged-by: Clément Bœsch <u@pkh.me>
4 years agoMerge commit '7ab5d577a9affe3397c08b032f983f9bf7101865'
Clément Bœsch [Wed, 29 Jun 2016 18:04:23 +0000 (20:04 +0200)]
Merge commit '7ab5d577a9affe3397c08b032f983f9bf7101865'

* commit '7ab5d577a9affe3397c08b032f983f9bf7101865':
  h264: move initializing the slice start out of h264_slice_header_parse()

Merged-by: Clément Bœsch <u@pkh.me>
4 years agofate: add test for asetnsamples
Petru Rares Sincraian [Wed, 29 Jun 2016 14:26:19 +0000 (16:26 +0200)]
fate: add test for asetnsamples

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavfi: Move new field to the end of AVFilterContext
Timo Rothenpieler [Wed, 29 Jun 2016 09:44:24 +0000 (11:44 +0200)]
lavfi: Move new field to the end of AVFilterContext

This fixes an accidental ABI break introduced at 8688d3a.

4 years agoMerge commit '4cec43a9eeb58eb9e581a2d9d25f78e5bfbb0960'
Clément Bœsch [Wed, 29 Jun 2016 15:59:57 +0000 (17:59 +0200)]
Merge commit '4cec43a9eeb58eb9e581a2d9d25f78e5bfbb0960'

* commit '4cec43a9eeb58eb9e581a2d9d25f78e5bfbb0960':
  h264: move calculating the POC out of h264_slice_header_parse()

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '6dd996c7c81575a1e4969987ab175a6df7beab3d'
Clément Bœsch [Wed, 29 Jun 2016 15:42:06 +0000 (17:42 +0200)]
Merge commit '6dd996c7c81575a1e4969987ab175a6df7beab3d'

* commit '6dd996c7c81575a1e4969987ab175a6df7beab3d':
  h264: move building the reference list out of h264_slice_header_parse()

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '0bad254300356005af4aef00a706bf2e8eee96bc'
Clément Bœsch [Wed, 29 Jun 2016 15:39:33 +0000 (17:39 +0200)]
Merge commit '0bad254300356005af4aef00a706bf2e8eee96bc'

* commit '0bad254300356005af4aef00a706bf2e8eee96bc':
  h264: move initing the implicit pred weight table out of h264_slice_header_parse()

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit 'ed9a20ebe4a89de119ea97bdccf688ece8c6648c' into merge-libav-new
Clément Bœsch [Wed, 29 Jun 2016 15:31:44 +0000 (17:31 +0200)]
Merge commit 'ed9a20ebe4a89de119ea97bdccf688ece8c6648c' into merge-libav-new

* commit 'ed9a20ebe4a89de119ea97bdccf688ece8c6648c':
  h264: split reading the ref list modifications and actually building the ref list

ref_modifications.val are read as u32 instead of u8 in FFmpeg.

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agofate/h264: add test for skip-nointra and skip-nokey
Michael Niedermayer [Fri, 3 Jun 2016 01:38:12 +0000 (03:38 +0200)]
fate/h264: add test for skip-nointra and skip-nokey

4 years agolavc/h264_slice: properly forward positive "error" code
Clément Bœsch [Wed, 29 Jun 2016 14:13:36 +0000 (16:13 +0200)]
lavc/h264_slice: properly forward positive "error" code

Fixes ./ffmpeg -skip_frame nokey -i h264/h264_intra_first-small.ts

Regression since c54e2740e1f4a8fb7fa4e521755bf4158c4cda51

4 years agoMerge commit 'fa57059079190242517701120cfdccad93c866da'
Clément Bœsch [Wed, 29 Jun 2016 13:29:38 +0000 (15:29 +0200)]
Merge commit 'fa57059079190242517701120cfdccad93c866da'

* commit 'fa57059079190242517701120cfdccad93c866da':
  h264: move initialising the implicit pred weight table for MBAFF

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '7b50d60442af8d9527e9da46818011fe15a5265a'
Clément Bœsch [Wed, 29 Jun 2016 13:17:16 +0000 (15:17 +0200)]
Merge commit '7b50d60442af8d9527e9da46818011fe15a5265a'

* commit '7b50d60442af8d9527e9da46818011fe15a5265a':
  h264: call ff_h264_fill_mbaff_ref_list() when constructing the normal ref list

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit 'b16e9b9ac9db449cae2242767dd3c3fc309357c4'
Clément Bœsch [Wed, 29 Jun 2016 13:03:12 +0000 (15:03 +0200)]
Merge commit 'b16e9b9ac9db449cae2242767dd3c3fc309357c4'

* commit 'b16e9b9ac9db449cae2242767dd3c3fc309357c4':
  h264: move initialising the explicit pred weight table for MBAFF

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit 'b93c0aed79f7f942e0dec26e53c147f297ce2ff6'
Clément Bœsch [Wed, 29 Jun 2016 13:00:01 +0000 (15:00 +0200)]
Merge commit 'b93c0aed79f7f942e0dec26e53c147f297ce2ff6'

* commit 'b93c0aed79f7f942e0dec26e53c147f297ce2ff6':
  h264: drop an outdated comment

This commit is a noop, see 237d31e0b98b95eef687e612177ca3ea24b709fc

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '77a1e2c5f8f8250dfacff24b993eb473260ed13e'
Clément Bœsch [Wed, 29 Jun 2016 12:58:31 +0000 (14:58 +0200)]
Merge commit '77a1e2c5f8f8250dfacff24b993eb473260ed13e'

* commit '77a1e2c5f8f8250dfacff24b993eb473260ed13e':
  h264: move direct mode inits out of h264_slice_header_parse()

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit 'd06e4d8aab9c679b6aea2591d2a9b382df9e5f74'
Clément Bœsch [Wed, 29 Jun 2016 12:55:02 +0000 (14:55 +0200)]
Merge commit 'd06e4d8aab9c679b6aea2591d2a9b382df9e5f74'

* commit 'd06e4d8aab9c679b6aea2591d2a9b382df9e5f74':
  h264: start splitting decode_slice_header()

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoavcodec/h264: Remove au_pps_id
Michael Niedermayer [Wed, 29 Jun 2016 12:39:46 +0000 (14:39 +0200)]
avcodec/h264: Remove au_pps_id

This should not be needed anymore and simplifies the next merge

Requested-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/h264: Remove current_sps_id
Michael Niedermayer [Wed, 29 Jun 2016 12:31:04 +0000 (14:31 +0200)]
avcodec/h264: Remove current_sps_id

This should not be needed anymore and simplifies the next merge

Requested-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavfi: Move new field to the end of AVFilterLink
Timo Rothenpieler [Wed, 29 Jun 2016 09:38:14 +0000 (11:38 +0200)]
lavfi: Move new field to the end of AVFilterLink

Even though this is not part of the public API, some external
applications access fields after it, thus breaking after updating from
ffmpeg 3.0 or earlier.
Since it is not public, it can be freely moved to the end to avoid
that problem in the future.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoffplay: Fix usage of private lavfi API
Timo Rothenpieler [Wed, 29 Jun 2016 09:15:39 +0000 (11:15 +0200)]
ffplay: Fix usage of private lavfi API

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMerge commit '2940e196c5e439d9869f8c02a49a318d0847453c'
Clément Bœsch [Wed, 29 Jun 2016 10:03:47 +0000 (12:03 +0200)]
Merge commit '2940e196c5e439d9869f8c02a49a318d0847453c'

* commit '2940e196c5e439d9869f8c02a49a318d0847453c':
  vaapi_h265: cu_qp_delta should not be used in constant-QP mode

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '02fa1ad9266f9b1ea11565ac2f93f45853e351e8'
Clément Bœsch [Wed, 29 Jun 2016 10:03:40 +0000 (12:03 +0200)]
Merge commit '02fa1ad9266f9b1ea11565ac2f93f45853e351e8'

* commit '02fa1ad9266f9b1ea11565ac2f93f45853e351e8':
  vaapi_h264: Add source version identifier as unregistered SEI

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '48e2967cd50c2e1a2a539fd697d20ead2c5c4cc8'
Clément Bœsch [Wed, 29 Jun 2016 10:03:28 +0000 (12:03 +0200)]
Merge commit '48e2967cd50c2e1a2a539fd697d20ead2c5c4cc8'

* commit '48e2967cd50c2e1a2a539fd697d20ead2c5c4cc8':
  vaapi_h264: Add support for SEI messages

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '19d7667a81499d4357ec8e0851701e17c238e584'
Clément Bœsch [Wed, 29 Jun 2016 10:03:20 +0000 (12:03 +0200)]
Merge commit '19d7667a81499d4357ec8e0851701e17c238e584'

* commit '19d7667a81499d4357ec8e0851701e17c238e584':
  vaapi_encode: Add support for writing arbitrary additional packed headers

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '081961f819c0b16c7a860d7da7d39f1fd91bd2f0'
Clément Bœsch [Wed, 29 Jun 2016 10:03:06 +0000 (12:03 +0200)]
Merge commit '081961f819c0b16c7a860d7da7d39f1fd91bd2f0'

* commit '081961f819c0b16c7a860d7da7d39f1fd91bd2f0':
  vaapi_h264: Add support for VUI parameters

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '2e4a7bd553ec7c805b4a3b90733405a14ba69072'
Clément Bœsch [Wed, 29 Jun 2016 09:56:57 +0000 (11:56 +0200)]
Merge commit '2e4a7bd553ec7c805b4a3b90733405a14ba69072'

* commit '2e4a7bd553ec7c805b4a3b90733405a14ba69072':
  h264: drop unused H264Context.gb

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '4f81f8dba735c212efae077c4fec8ad4fe53b352'
Clément Bœsch [Wed, 29 Jun 2016 09:54:54 +0000 (11:54 +0200)]
Merge commit '4f81f8dba735c212efae077c4fec8ad4fe53b352'

* commit '4f81f8dba735c212efae077c4fec8ad4fe53b352':
  Drop unnecessary golomb.h #includes

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '197ae68e78784524a7ccf97a3c301092715305d3'
Clément Bœsch [Wed, 29 Jun 2016 09:52:34 +0000 (11:52 +0200)]
Merge commit '197ae68e78784524a7ccf97a3c301092715305d3'

* commit '197ae68e78784524a7ccf97a3c301092715305d3':
  Drop unnecessary unary.h #includes

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '6ac52f05a6fcadb84972c9557b28c67a416f866b'
Clément Bœsch [Wed, 29 Jun 2016 09:52:03 +0000 (11:52 +0200)]
Merge commit '6ac52f05a6fcadb84972c9557b28c67a416f866b'

* commit '6ac52f05a6fcadb84972c9557b28c67a416f866b':
  dvbsub_parser: Add missing mem.h #include

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '81f769fa129edc51c28285649c2df6da717e718f'
Clément Bœsch [Wed, 29 Jun 2016 09:48:53 +0000 (11:48 +0200)]
Merge commit '81f769fa129edc51c28285649c2df6da717e718f'

* commit '81f769fa129edc51c28285649c2df6da717e718f':
  gsm: Move requant_tab table to the gsm tables file

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '42dc214323637464759354912e18b2bee1884dd1'
Clément Bœsch [Wed, 29 Jun 2016 09:46:36 +0000 (11:46 +0200)]
Merge commit '42dc214323637464759354912e18b2bee1884dd1'

* commit '42dc214323637464759354912e18b2bee1884dd1':
  mpc: Drop unused GetBitContext context member

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '85b8403c6fd11e1c570caa970c7f435ac5f9583e'
Clément Bœsch [Wed, 29 Jun 2016 09:45:37 +0000 (11:45 +0200)]
Merge commit '85b8403c6fd11e1c570caa970c7f435ac5f9583e'

* commit '85b8403c6fd11e1c570caa970c7f435ac5f9583e':
  svq1enc: Drop unused GetBitContext context member

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '6d8fd614ff957af242efcd8a6a0619874382f3a4'
Clément Bœsch [Wed, 29 Jun 2016 09:43:57 +0000 (11:43 +0200)]
Merge commit '6d8fd614ff957af242efcd8a6a0619874382f3a4'

* commit '6d8fd614ff957af242efcd8a6a0619874382f3a4':
  vorbis: Kill some pointless debug code

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '59c6509d9f0236acbc317198eab76dab8320bced'
Clément Bœsch [Wed, 29 Jun 2016 09:42:42 +0000 (11:42 +0200)]
Merge commit '59c6509d9f0236acbc317198eab76dab8320bced'

* commit '59c6509d9f0236acbc317198eab76dab8320bced':
  mss2: Drop a silly assert

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agolavc: move 2 more BITSTREAM_READER_LE definitions
Clément Bœsch [Wed, 29 Jun 2016 09:41:07 +0000 (11:41 +0200)]
lavc: move 2 more BITSTREAM_READER_LE definitions

This was mentioned to be in ae753dbd0de448b51f0e0b980c26b94747ec44f5 but
actually wasn't.

4 years agoMerge commit 'b668662939de3a02454cfc9ba3e6d10b87527a40'
Clément Bœsch [Wed, 29 Jun 2016 09:27:33 +0000 (11:27 +0200)]
Merge commit 'b668662939de3a02454cfc9ba3e6d10b87527a40'

* commit 'b668662939de3a02454cfc9ba3e6d10b87527a40':
  get_bits: Move BITSTREAM_READER_LE definition before all relevant #includes

The merge commit also includes changes for libavcodec/interplayacm.c and
libavcodec/truemotion2rt.c

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '09c4e5c5988c0037d108c5fc2a137d9ad488f7f4'
Clément Bœsch [Wed, 29 Jun 2016 09:20:20 +0000 (11:20 +0200)]
Merge commit '09c4e5c5988c0037d108c5fc2a137d9ad488f7f4'

* commit '09c4e5c5988c0037d108c5fc2a137d9ad488f7f4':
  indeo2: Drop disabled big-endian ir2_codes table

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit 'b7f98659f21dce438c33b512e25fd64b8d07c347'
Clément Bœsch [Wed, 29 Jun 2016 09:14:57 +0000 (11:14 +0200)]
Merge commit 'b7f98659f21dce438c33b512e25fd64b8d07c347'

* commit 'b7f98659f21dce438c33b512e25fd64b8d07c347':
  Remove unnecessary get_bits.h #includes

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '2a48a75a6f508121b96b0732a9fe03a46303f579'
Clément Bœsch [Wed, 29 Jun 2016 09:09:36 +0000 (11:09 +0200)]
Merge commit '2a48a75a6f508121b96b0732a9fe03a46303f579'

* commit '2a48a75a6f508121b96b0732a9fe03a46303f579':
  sgirledec: simplify, no need to use reget buffer

This commit is a noop, see ccc3f4e7104eda0f72436720ebcdc2e916217c7a

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit '6e2ad28cf76461b02d85ad178087ba0c628b8d9d'
Clément Bœsch [Wed, 29 Jun 2016 09:07:41 +0000 (11:07 +0200)]
Merge commit '6e2ad28cf76461b02d85ad178087ba0c628b8d9d'

* commit '6e2ad28cf76461b02d85ad178087ba0c628b8d9d':
  aic: add frame threading support

This commit is a noop, see 8e069eb525d46b8f89089e37fc7ac81b2d9b1092

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agoMerge commit 'c3ed259e4fef64a1af4f6537be545fba47491aa9'
Clément Bœsch [Wed, 29 Jun 2016 09:03:55 +0000 (11:03 +0200)]
Merge commit 'c3ed259e4fef64a1af4f6537be545fba47491aa9'

* commit 'c3ed259e4fef64a1af4f6537be545fba47491aa9':
  fate: Move Canopus decoder tests to a separate file

Merged-by: Clément Bœsch <clement@stupeflix.com>
4 years agolavc/mediacodecdec_h264: add missing NAL headers to SPS/PPS buffers
Matthieu Bouron [Tue, 28 Jun 2016 10:25:27 +0000 (12:25 +0200)]
lavc/mediacodecdec_h264: add missing NAL headers to SPS/PPS buffers

Fixes a regression introduced by 0cd5e281df3f69c1ed8f2a72a5bcbf9691e1b5d5.

4 years agoavformat/mov: Check sample size
Michael Niedermayer [Tue, 28 Jun 2016 21:49:36 +0000 (23:49 +0200)]
avformat/mov: Check sample size

Fixes integer overflow
Fixes: poc.mp4

Found-by: ajax secure <ajax4sec@hotmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate/webp : add test for lossy compression.
Martin Vignali [Sun, 26 Jun 2016 10:42:44 +0000 (12:42 +0200)]
fate/webp : add test for lossy compression.

the result of ffmpeg decoding is binary exact with the yuv output of
official decoder (dwebp)

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavdevice/decklink_common: Replace rare spelling of Succesfully by 500 times more...
Michael Niedermayer [Tue, 28 Jun 2016 01:06:25 +0000 (03:06 +0200)]
avdevice/decklink_common: Replace rare spelling of Succesfully by 500 times more common one

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/ccaption_dec: Fix mixed declaration and statement.
Michael Niedermayer [Tue, 28 Jun 2016 00:33:03 +0000 (02:33 +0200)]
avcodec/ccaption_dec: Fix mixed declaration and statement.

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/ccaption_dec: implement tab offset commands
Aman Gupta [Tue, 14 Jun 2016 18:57:42 +0000 (11:57 -0700)]
avcodec/ccaption_dec: implement tab offset commands

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMAINTAINERS: remove 2.4 as 3.1 was released
Michael Niedermayer [Mon, 27 Jun 2016 13:16:54 +0000 (15:16 +0200)]
MAINTAINERS: remove 2.4 as 3.1 was released

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMerge commit '20a8c78ce0a5baf37f6a94e2d1e57e186b6f4b54'
Clément Bœsch [Mon, 27 Jun 2016 18:10:35 +0000 (20:10 +0200)]
Merge commit '20a8c78ce0a5baf37f6a94e2d1e57e186b6f4b54'

* commit '20a8c78ce0a5baf37f6a94e2d1e57e186b6f4b54':
  avconv: Do not copy extradata if source buffer is empty

This commit is a noop, see 4d02dfbde475d249916eb19c360e890059aa6aa5

Merged-by: Clément Bœsch <u@pkh.me>
4 years agoMerge commit '38f99017e69bd25e88be87117237c29727c25635'
Clément Bœsch [Mon, 27 Jun 2016 17:54:37 +0000 (19:54 +0200)]
Merge commit '38f99017e69bd25e88be87117237c29727c25635'

* commit '38f99017e69bd25e88be87117237c29727c25635':
  vp9: Return the correct size when decoding a superframe

This commit is a noop, see c2f3715cb3fce093137591e3005de3e831b1f9fd

Merged-by: Clément Bœsch <u@pkh.me>
4 years agoMerge commit 'b2d5d6a7f20a255a5f3c9bf539cc507afd909ce5'
Clément Bœsch [Mon, 27 Jun 2016 17:48:21 +0000 (19:48 +0200)]
Merge commit 'b2d5d6a7f20a255a5f3c9bf539cc507afd909ce5'

* commit 'b2d5d6a7f20a255a5f3c9bf539cc507afd909ce5':
  build: Only enable symbol reduction if the compiler does proper DCE

Merged-by: Clément Bœsch <u@pkh.me>
4 years agoMerge commit 'c5fd4b50610f62cbb3baa4f4108139363128dea1'
Clément Bœsch [Mon, 27 Jun 2016 17:39:46 +0000 (19:39 +0200)]
Merge commit 'c5fd4b50610f62cbb3baa4f4108139363128dea1'

* commit 'c5fd4b50610f62cbb3baa4f4108139363128dea1':
  build: Simplify postprocessing of linker version script files

Merged-by: Clément Bœsch <u@pkh.me>
4 years agolavc/pnm_parser: disable parsing for text based PNMs
Clément Bœsch [Mon, 27 Jun 2016 15:54:22 +0000 (17:54 +0200)]
lavc/pnm_parser: disable parsing for text based PNMs

P1, P2, and P3 are respectively the text versions of PBM, PGM and PPM
files.

We can not obtain the buffer size using av_imgage_get_buffer_size() as
every pixel in the picture will occupy a random size between 16 and 32
bits ("4 " and "231 " are such example).

Ideally, we could look for the next header (or EOF) in the bytestream,
but this commit is meant to fix a decoding regression introduced by
48ac4532d437790e56b8ed5d0d467dc88685f035.

Fix Ticket #5670

4 years agoMerge commit '535a742c2695a9e0c586b50d7fa76e318232ff24'
Matthieu Bouron [Mon, 27 Jun 2016 15:51:57 +0000 (17:51 +0200)]
Merge commit '535a742c2695a9e0c586b50d7fa76e318232ff24'

* commit '535a742c2695a9e0c586b50d7fa76e318232ff24':
  build: Change structure of the linker version script templates

Merged-by: Matthieu Bouron <matthieu.bouron@stupeflix.com>
4 years agoChangelog: Add VideoToolbox encoder entry for 3.1
Rick Kern [Mon, 27 Jun 2016 15:43:13 +0000 (11:43 -0400)]
Changelog: Add VideoToolbox encoder entry for 3.1

Signed-off-by: Rick Kern <kernrj@gmail.com>
4 years agoMerge commit '5b1b495c8d21600eac694d50f428654a3125e217'
Matthieu Bouron [Mon, 27 Jun 2016 15:34:10 +0000 (17:34 +0200)]
Merge commit '5b1b495c8d21600eac694d50f428654a3125e217'

* commit '5b1b495c8d21600eac694d50f428654a3125e217':
  build: Print a message when generating version scripts

Merged-by: Matthieu Bouron <matthieu.bouron@stupeflix.com>
4 years agoasm: FF_-prefix internal macros used in inline assembly
Matthieu Bouron [Mon, 27 Jun 2016 15:21:04 +0000 (17:21 +0200)]
asm: FF_-prefix internal macros used in inline assembly

See merge commit '39d6d3618d48625decaff7d9bdbb45b44ef2a805'.

4 years agoMerge commit '1e9c5bf4c136fe9e010cc8a7e7270bba0d1bf45e'
Matthieu Bouron [Mon, 27 Jun 2016 15:18:25 +0000 (17:18 +0200)]
Merge commit '1e9c5bf4c136fe9e010cc8a7e7270bba0d1bf45e'

* commit '1e9c5bf4c136fe9e010cc8a7e7270bba0d1bf45e':
  asm: FF_-prefix internal macros used in inline assembly

This commit is a noop as the ASM codebase differs too much between libav
and ffmpeg. The corresponding chunks will be found in the next commit.

Merged-by: Matthieu Bouron <matthieu.bouron@stupeflix.com>
4 years agoavformat/mov: parse rtmd track timecode
Paul B Mahol [Sat, 25 Jun 2016 09:33:46 +0000 (11:33 +0200)]
avformat/mov: parse rtmd track timecode

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavdevice/decklink: fix mingw portability
Marton Balint [Sun, 26 Jun 2016 23:11:50 +0000 (01:11 +0200)]
avdevice/decklink: fix mingw portability

Fixes ticket #5669.

Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoconfigure: use c++98 for c++ files
Rick Kern [Sun, 26 Jun 2016 20:44:40 +0000 (16:44 -0400)]
configure: use c++98 for c++ files

Use c++98 standard instead of c++11.

Signed-off-by: Rick Kern <kernrj@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate/webp : add test for webp lossless decoding (rgb and rgba)
Martin Vignali [Sat, 25 Jun 2016 19:53:23 +0000 (21:53 +0200)]
fate/webp : add test for webp lossless decoding (rgb and rgba)

output have been compared with official decoding tool output (dwebp)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate/exr : add tests for file with half and float channels
Martin Vignali [Sat, 25 Jun 2016 18:16:01 +0000 (20:16 +0200)]
fate/exr : add tests for file with half and float channels

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agochangelog: fix entry order
James Almer [Sun, 26 Jun 2016 18:27:47 +0000 (15:27 -0300)]
changelog: fix entry order

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoUpdate FFmpeg 3.1 cut marker
James Almer [Sun, 26 Jun 2016 17:45:54 +0000 (14:45 -0300)]
Update FFmpeg 3.1 cut marker

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavdevice/decklink: add support for setting input packet timestamp source
Marton Balint [Sat, 18 Jun 2016 22:35:44 +0000 (00:35 +0200)]
avdevice/decklink: add support for setting input packet timestamp source

Reviewed-by: Deti Fliegl <deti@fliegl.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavdevice/decklink: add support for audio and video input selection
Marton Balint [Sat, 18 Jun 2016 10:04:15 +0000 (12:04 +0200)]
avdevice/decklink: add support for audio and video input selection

Reviewed-by: Deti Fliegl <deti@fliegl.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavdevice/decklink: add support for setting duplex mode
Marton Balint [Sat, 11 Jun 2016 11:41:29 +0000 (13:41 +0200)]
avdevice/decklink: add support for setting duplex mode

This patch also makes BlackMagic drivers v10.6.1 a hard requirement.

Reviewed-by: Deti Fliegl <deti@fliegl.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavdevice/decklink: always free decklink resources on error
Marton Balint [Sat, 18 Jun 2016 15:40:06 +0000 (17:40 +0200)]
avdevice/decklink: always free decklink resources on error

Reviewed-by: Deti Fliegl <deti@fliegl.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavdevice/decklink: factorize device finder function
Marton Balint [Sat, 18 Jun 2016 14:55:47 +0000 (16:55 +0200)]
avdevice/decklink: factorize device finder function

Reviewed-by: Deti Fliegl <deti@fliegl.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavdevice/decklink: remove unused itermode iterators
Marton Balint [Sat, 18 Jun 2016 14:04:30 +0000 (16:04 +0200)]
avdevice/decklink: remove unused itermode iterators

Reviewed-by: Deti Fliegl <deti@fliegl.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavdevice/decklink: factorize cleanup function to common code
Marton Balint [Sat, 18 Jun 2016 13:49:01 +0000 (15:49 +0200)]
avdevice/decklink: factorize cleanup function to common code

Reviewed-by: Deti Fliegl <deti@fliegl.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavdevice/decklink_dec: fix bitrate calculations n3.2-dev
Marton Balint [Sun, 19 Jun 2016 17:20:00 +0000 (19:20 +0200)]
avdevice/decklink_dec: fix bitrate calculations

Reviewed-by: Deti Fliegl <deti@fliegl.de>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavcodec/libopenjpegenc: Set numresolutions by default to a value that is not too...
Michael Niedermayer [Sun, 26 Jun 2016 15:34:37 +0000 (17:34 +0200)]
avcodec/libopenjpegenc: Set numresolutions by default to a value that is not too large

Fixes issues with libopenjpeg 2.1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoMerge commit 'dc40a70c5755bccfb1a1349639943e1f408bea50'
Hendrik Leppkes [Sun, 26 Jun 2016 13:53:00 +0000 (15:53 +0200)]
Merge commit 'dc40a70c5755bccfb1a1349639943e1f408bea50'

* commit 'dc40a70c5755bccfb1a1349639943e1f408bea50':
  Drop unnecessary libavutil/x86/asm.h #includes

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
4 years agoMerge commit '5264e7ba217b3c0ceae813917134e1ab52573141'
Hendrik Leppkes [Sun, 26 Jun 2016 13:45:21 +0000 (15:45 +0200)]
Merge commit '5264e7ba217b3c0ceae813917134e1ab52573141'

* commit '5264e7ba217b3c0ceae813917134e1ab52573141':
  ac3: Check the array bound before dereferencing

See d85ebea3f3b68ebccfe308fa839fc30fa634e4de

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>