ffmpeg.git
3 years agoMerge commit '3c84eaae9da0dc450ae99c65bb6b9865e3ba7fad'
Hendrik Leppkes [Fri, 7 Oct 2016 11:21:51 +0000 (13:21 +0200)]
Merge commit '3c84eaae9da0dc450ae99c65bb6b9865e3ba7fad'

* commit '3c84eaae9da0dc450ae99c65bb6b9865e3ba7fad':
  h264: Eliminate unused but set variable

Noop, the variable doesn't exist in our code.

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoMerge commit '4dbfcd07570a9e45e9597561023adb6da26f27f6'
Hendrik Leppkes [Fri, 7 Oct 2016 11:20:04 +0000 (13:20 +0200)]
Merge commit '4dbfcd07570a9e45e9597561023adb6da26f27f6'

* commit '4dbfcd07570a9e45e9597561023adb6da26f27f6':
  librtmp: Avoid an infiniloop setting connection arguments

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoMerge commit 'fe498ef5144d3712b887f44a0c5e654add99ead7'
Hendrik Leppkes [Fri, 7 Oct 2016 11:19:53 +0000 (13:19 +0200)]
Merge commit 'fe498ef5144d3712b887f44a0c5e654add99ead7'

* commit 'fe498ef5144d3712b887f44a0c5e654add99ead7':
  hwcontext_vaapi: Return all formats for constraints without config

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoMerge commit '11b8030309ee93d79b3a6cd4b83bf00757db1598'
Hendrik Leppkes [Fri, 7 Oct 2016 11:19:32 +0000 (13:19 +0200)]
Merge commit '11b8030309ee93d79b3a6cd4b83bf00757db1598'

* commit '11b8030309ee93d79b3a6cd4b83bf00757db1598':
  vaapi_encode: Fix fallback when input does not match any format

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoMerge commit '8c3c7b8920033d61c7aa15a4465b759c84e5958f'
Hendrik Leppkes [Fri, 7 Oct 2016 11:19:06 +0000 (13:19 +0200)]
Merge commit '8c3c7b8920033d61c7aa15a4465b759c84e5958f'

* commit '8c3c7b8920033d61c7aa15a4465b759c84e5958f':
  dxva2_h264: Remove an unused variable

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoMerge commit 'dc7501e524dc3270335749302c7aa449973625f3'
Hendrik Leppkes [Fri, 7 Oct 2016 11:18:05 +0000 (13:18 +0200)]
Merge commit 'dc7501e524dc3270335749302c7aa449973625f3'

* commit 'dc7501e524dc3270335749302c7aa449973625f3':
  checkasm: Issue emms after benchmarking functions

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoMerge commit 'beb62dac629603eb074a44c44389c230b5caac7c'
Hendrik Leppkes [Fri, 7 Oct 2016 11:16:36 +0000 (13:16 +0200)]
Merge commit 'beb62dac629603eb074a44c44389c230b5caac7c'

* commit 'beb62dac629603eb074a44c44389c230b5caac7c':
  Use AVFrame.pts instead of deprecated pkt_pts.

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoMerge commit '32c8359093d1ff4f45ed19518b449b3ac3769d27'
Hendrik Leppkes [Fri, 7 Oct 2016 10:55:50 +0000 (12:55 +0200)]
Merge commit '32c8359093d1ff4f45ed19518b449b3ac3769d27'

* commit '32c8359093d1ff4f45ed19518b449b3ac3769d27':
  lavc: export the timestamps when decoding in AVFrame.pts

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoffmpeg: remove unused and errorneous AVFrame timestamp check
Hendrik Leppkes [Sat, 1 Oct 2016 14:15:45 +0000 (16:15 +0200)]
ffmpeg: remove unused and errorneous AVFrame timestamp check

Decoders have previously not used AVFrame.pts, and with the upcoming
deprecation of pkt_pts (in favor of pts), this would lead to an errorneous
interpration of timestamps.

3 years agotests: add -nostdin flag when calling ffmpeg
Rodger Combs [Thu, 8 Sep 2016 00:16:34 +0000 (19:16 -0500)]
tests: add -nostdin flag when calling ffmpeg

This fixes a long-standing issue where running FATE in parallel could result
in the terminal being left misconfigured, particularly if a test failed or
was canceled wtih ^C.

3 years agoffmpeg: don't reconfigure terminal if we're not taking input from stdin
Rodger Combs [Thu, 8 Sep 2016 00:16:27 +0000 (19:16 -0500)]
ffmpeg: don't reconfigure terminal if we're not taking input from stdin

3 years agoavformat/matroskaenc: add an option to disable writting CRC32 elements
James Almer [Thu, 6 Oct 2016 21:17:04 +0000 (18:17 -0300)]
avformat/matroskaenc: add an option to disable writting CRC32 elements

Also add missing Changelog entry.

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: write a CRC32 element on Info
James Almer [Mon, 3 Oct 2016 22:29:28 +0000 (19:29 -0300)]
avformat/matroskaenc: write a CRC32 element on Info

Finishes implementing ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: write a CRC32 element on Tags
James Almer [Mon, 3 Oct 2016 22:27:30 +0000 (19:27 -0300)]
avformat/matroskaenc: write a CRC32 element on Tags

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: write a CRC32 element on Attachments
James Almer [Mon, 3 Oct 2016 22:23:55 +0000 (19:23 -0300)]
avformat/matroskaenc: write a CRC32 element on Attachments

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: write a CRC32 element on Chapters
James Almer [Mon, 3 Oct 2016 22:20:53 +0000 (19:20 -0300)]
avformat/matroskaenc: write a CRC32 element on Chapters

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: write a CRC32 element on Tracks
James Almer [Mon, 3 Oct 2016 22:20:11 +0000 (19:20 -0300)]
avformat/matroskaenc: write a CRC32 element on Tracks

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: write a CRC32 element on Cues
James Almer [Mon, 3 Oct 2016 22:15:24 +0000 (19:15 -0300)]
avformat/matroskaenc: write a CRC32 element on Cues

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: write a CRC32 element on SeekHead
James Almer [Mon, 3 Oct 2016 21:59:42 +0000 (18:59 -0300)]
avformat/matroskaenc: write a CRC32 element on SeekHead

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: write a CRC32 element on each Cluster
James Almer [Mon, 3 Oct 2016 02:46:19 +0000 (23:46 -0300)]
avformat/matroskaenc: write a CRC32 element on each Cluster

Implements part of ticket #4347

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: always use a dynamic buffer when writting clusters
James Almer [Sun, 2 Oct 2016 17:37:11 +0000 (14:37 -0300)]
avformat/matroskaenc: always use a dynamic buffer when writting clusters

Tested-by: Dave Rice <dave@dericed.com>
Tested-by: Jerome Martinez <jerome@mediaarea.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: print debug message with cluster offsets only if the output...
James Almer [Sun, 2 Oct 2016 17:14:51 +0000 (14:14 -0300)]
avformat/matroskaenc: print debug message with cluster offsets only if the output is seekable

Printing the dynamic buffer offset is useless.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskadec: check for more reserved values on some Colour elements
James Almer [Tue, 27 Sep 2016 22:43:08 +0000 (19:43 -0300)]
avformat/matroskadec: check for more reserved values on some Colour elements

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: don't write an empty Colour master element
James Almer [Tue, 27 Sep 2016 22:20:57 +0000 (19:20 -0300)]
avformat/matroskaenc: don't write an empty Colour master element

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoconfigure: Also try -mstack-alignment for clang,
Carl Eugen Hoyos [Thu, 6 Oct 2016 16:44:29 +0000 (18:44 +0200)]
configure: Also try -mstack-alignment for clang,

Fixes stack alignment on x86_32 FreeBSD.
Fixes ticket #5231.

3 years agolavc/mediacodecdec: fix size variable shadowing in ff_mediacodec_dec_decode
Matthieu Bouron [Thu, 6 Oct 2016 10:04:57 +0000 (12:04 +0200)]
lavc/mediacodecdec: fix size variable shadowing in ff_mediacodec_dec_decode

Fixes incompatible pointer type warning on 64-bit systems.

3 years agoavcodec/qsvenc_h264: fix segfault when a53 SEI is not available
Nablet Developer [Wed, 5 Oct 2016 13:34:25 +0000 (09:34 -0400)]
avcodec/qsvenc_h264: fix segfault when a53 SEI is not available

Signed-off-by: Nablet Developer <sdk@nablet.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/utils: avoid using programs for duration when there's only one
Rodger Combs [Wed, 5 Oct 2016 11:38:24 +0000 (06:38 -0500)]
lavf/utils: avoid using programs for duration when there's only one

This allows us to be more selective about the streams we derive durations from
(specifically, ignoring text streams with outlier end times) in the common case

3 years agolavf/utils: ignore outlier subtitle and data stream end times as well
Rodger Combs [Wed, 5 Oct 2016 11:37:57 +0000 (06:37 -0500)]
lavf/utils: ignore outlier subtitle and data stream end times as well

3 years agopixfmt: Use enum assignment for aliases
Timothy Gu [Mon, 22 Aug 2016 00:02:02 +0000 (17:02 -0700)]
pixfmt: Use enum assignment for aliases

This way, Doxygen is happier as aliases are now grouped together, and
it never handled #define's in an enum well in the first place.

Y400A already exists as an enum assignment.

3 years agopixdesc: Order function prototypes semantically
Timothy Gu [Sun, 21 Aug 2016 23:56:05 +0000 (16:56 -0700)]
pixdesc: Order function prototypes semantically

3 years agoavutil/mips/generic_macros_msa: rename macro variable which causes segfault for mips r6
Shivraj Patil [Wed, 5 Oct 2016 12:22:24 +0000 (17:52 +0530)]
avutil/mips/generic_macros_msa: rename macro variable which causes segfault for mips r6

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/riffenc: added possibility to set first to ninth audio language for RIFF...
Florian Diemer [Sun, 2 Oct 2016 17:01:05 +0000 (19:01 +0200)]
avformat/riffenc: added possibility to set first to ninth audio language for RIFF taged files (e.g. avi files)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoaf_hdcd: disable auto-convert by default
Burt P [Wed, 5 Oct 2016 17:52:56 +0000 (12:52 -0500)]
af_hdcd: disable auto-convert by default

As all known valid HDCD sample formats and sample rates are now handled
by the filter, remove the scan that "invades the privacy" of the filter graph
and turn off autoconvert by default as requested by Nicolas George.

http://ffmpeg.org/pipermail/ffmpeg-devel/2016-August/197571.html

Signed-off-by: Burt P <pburt0@gmail.com>
3 years agoaf_hdcd: add experimental 20 and 24-bit decoding support
Burt P [Sun, 2 Oct 2016 07:25:13 +0000 (02:25 -0500)]
af_hdcd: add experimental 20 and 24-bit decoding support

I don't have any legitimate 20 or 24-bit HDCD to test. It is known
that the PM Model Two would insert packets into 20 and 24-bit output,
but I have no idea what differences in behavior existed when decoding
20 or 24-bit. For now, as with 16-bit, PE (if enabled) will expand the
top 3dB into 9dB and LLE (gain adjust) will be applied if signaled.

Signed-off-by: Burt P <pburt0@gmail.com>
3 years agoaf_hdcd: hdcd_scan() and hdcd_integrate() handle stereo and single channel
Burt P [Wed, 28 Sep 2016 11:51:50 +0000 (06:51 -0500)]
af_hdcd: hdcd_scan() and hdcd_integrate() handle stereo and single channel

New versions of hdcd_scan() and hdcd_integrate() that also do the
work of hdcd_scan_stereo() and hdcd_integrate_stereo().

Some code split into previously separate functions to remove
duplication is now merged back into each function in the single
place where it is used.

Signed-off-by: Burt P <pburt0@gmail.com>
3 years agoaf_hdcd: support s16p (WavPack) directly
Burt P [Wed, 28 Sep 2016 11:18:19 +0000 (06:18 -0500)]
af_hdcd: support s16p (WavPack) directly

The buffer is already being copied anyway, so interlace the planar
format during the copy and remove one use of auto-convert.

Signed-off-by: Burt P <pburt0@gmail.com>
3 years agoaf_hdcd: allow all HDCD sample rates
Burt P [Wed, 7 Sep 2016 15:48:03 +0000 (10:48 -0500)]
af_hdcd: allow all HDCD sample rates

The PM Model Two could output HDCD-encoded audio in CD and all
DVD-Audio sample rates. (44100, 48000, 88200, 96000, 176400, and
192000 Hz)

Signed-off-by: Burt P <pburt0@gmail.com>
3 years agoaf_hdcd: add mono as a supported channel layout
Burt P [Wed, 28 Sep 2016 11:25:03 +0000 (06:25 -0500)]
af_hdcd: add mono as a supported channel layout

Signed-off-by: Burt P <pburt0@gmail.com>
3 years agoChangeLog: Add latest CUVID changes
Philip Langdale [Wed, 5 Oct 2016 15:27:51 +0000 (08:27 -0700)]
ChangeLog: Add latest CUVID changes

3 years agolavc/tiff: Print compression debug information.
Carl Eugen Hoyos [Wed, 5 Oct 2016 11:49:17 +0000 (13:49 +0200)]
lavc/tiff: Print compression debug information.

3 years agolavc: set best effort timestamp if unset when using new decode API
wm4 [Wed, 5 Oct 2016 09:35:54 +0000 (11:35 +0200)]
lavc: set best effort timestamp if unset when using new decode API

Some API users (in particular ffmpeg.c) check the best effort timestamp
only.

3 years agodoc/developer: remove duplicate policies and fix error
Josh de Kock [Tue, 4 Oct 2016 22:10:00 +0000 (23:10 +0100)]
doc/developer: remove duplicate policies and fix error

Fixes regression as of ee72b6d1

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Josh de Kock <josh@itanimul.li>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroskaenc: don't reserve space for stream duration tags if the output...
James Almer [Sun, 2 Oct 2016 15:57:39 +0000 (12:57 -0300)]
avformat/matroskaenc: don't reserve space for stream duration tags if the output is not seekable

The durations are never written in that situation.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/matroska: write FlagInterlaced element in WebM
James Almer [Tue, 4 Oct 2016 22:42:55 +0000 (19:42 -0300)]
avformat/matroska: write FlagInterlaced element in WebM

It's listed as supported in both https://www.webmproject.org/docs/container/
and https://matroska.org/technical/specs/index.html

Reviewed-by: Dave Rice <dave@dericed.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agodoc/developer: add sections for policies
Josh de Kock [Sat, 1 Oct 2016 22:52:58 +0000 (23:52 +0100)]
doc/developer: add sections for policies

And sort policies into these sections.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Josh de Kock <josh@itanimul.li>
3 years agodoc/developer: reword some of the policies
Josh de Kock [Sat, 1 Oct 2016 22:48:29 +0000 (23:48 +0100)]
doc/developer: reword some of the policies

Explicitly state that FATE should pass, and code should work
for all reviewers who tested.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Josh de Kock <josh@itanimul.li>
3 years agolavc/ivi_dsp.c: fix warnings due to indentation
Adriano Pallavicino [Sun, 2 Oct 2016 18:42:44 +0000 (20:42 +0200)]
lavc/ivi_dsp.c: fix warnings due to indentation

Signed-off-by: Adriano Pallavicino <adriano.pallavicino@gmail.com>
Signed-off-by: Josh de Kock <josh@itanimul.li>
3 years agoavcodec/cuvid: don't align frame size
Timo Rothenpieler [Tue, 4 Oct 2016 10:58:42 +0000 (12:58 +0200)]
avcodec/cuvid: don't align frame size

hwcontext_cuda was changed to take care of proper alignment internally

3 years agolavf/mpegtsenc: fix autobsf when the first NAL is 0x1<XX> bytes
Rodger Combs [Sun, 25 Sep 2016 19:43:42 +0000 (14:43 -0500)]
lavf/mpegtsenc: fix autobsf when the first NAL is 0x1<XX> bytes

3 years agoconfigure: add linker export script support on Darwin
Rodger Combs [Fri, 9 Sep 2016 23:12:34 +0000 (18:12 -0500)]
configure: add linker export script support on Darwin

This isn't a "version script" in the usual sense, since it doesn't set symbol
versions directly. Instead, the version for the whole .dylib is set in the
linker flags, and we generate a list of symbol patterns to export. This allows
us to keep our local symbols (e.g. ff_*) local on the platform.

The Darwin linker's exported_symbols_list format is a bit different than the
one used by the GNU linker. It doesn't handle local symbols at all, since when
a list is provided, all unlisted symbols are local by default; thus, we remove
local sections. It doesn't handle per-version sections, so we remove the
headers and brackets. It expects symbols to be prefixed with an underscore.
It errors if a listed symbol with no wildcards is not present in the output,
so we append an asterisk to any symbol that doesn't already end in one.

3 years agoavformat/hlsenc: support multi level path in m3u8 with filename
Steven Liu [Mon, 26 Sep 2016 07:51:02 +0000 (15:51 +0800)]
avformat/hlsenc: support multi level path in m3u8 with filename

before patch:

localhost:osx liuqi$ tree 20160926/
20160926/
└── file-20160909
    └── 26
        └── 16
            └── 15
                ├── 46
                │   ├── 13.ts
                │   ├── 25.ts
                │   ├── 36.ts
                │   ├── 45.ts
                │   └── 54.ts
                └── 47
                    ├── 04.ts
                    ├── 14.ts
                    ├── 24.ts
                    └── 35.ts

6 directories, 9 files
localhost:osx liuqi$ cat out.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:12
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:11.360000,
 13.ts
 #EXTINF:10.800000,
 25.ts
 #EXTINF:9.120000,
 36.ts
 #EXTINF:8.760000,
 45.ts
 #EXTINF:10.200000,
 54.ts
 #EXTINF:10.720000,
 04.ts
 #EXTINF:9.600000,
 14.ts
 #EXTINF:10.600000,
 24.ts
 #EXTINF:8.760000,
 35.ts
 #EXT-X-ENDLIST

after patch:

localhost:osx liuqi$ tree 20160926/
20160926/
└── file-20160909
    └── 26
        └── 16
            └── 15
                ├── 46
                │   ├── 13.ts
                │   ├── 25.ts
                │   ├── 36.ts
                │   ├── 45.ts
                │   └── 54.ts
                └── 47
                    ├── 04.ts
                    ├── 14.ts
                    ├── 24.ts
                    └── 35.ts

6 directories, 9 files
localhost:osx liuqi$ cat out.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:12
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:11.360000,
 20160926/file-20160909/26/16/15/46/13.ts
 #EXTINF:10.800000,
 20160926/file-20160909/26/16/15/46/25.ts
 #EXTINF:9.120000,
 20160926/file-20160909/26/16/15/46/36.ts
 #EXTINF:8.760000,
 20160926/file-20160909/26/16/15/46/45.ts
 #EXTINF:10.200000,
 20160926/file-20160909/26/16/15/46/54.ts
 #EXTINF:10.720000,
 20160926/file-20160909/26/16/15/47/04.ts
 #EXTINF:9.600000,
 20160926/file-20160909/26/16/15/47/14.ts
 #EXTINF:10.600000,
 20160926/file-20160909/26/16/15/47/24.ts
 #EXTINF:8.760000,
 20160926/file-20160909/26/16/15/47/35.ts
 #EXT-X-ENDLIST

Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
3 years agolavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API
Stephan Holljes [Fri, 30 Sep 2016 19:17:54 +0000 (21:17 +0200)]
lavf/aviobuf.c: Adapt avio_accept and avio_handshake to new AVIOContext API

Signed-off-by: Stephan Holljes <klaxa1337@googlemail.com>
3 years agolavd/openal: don't return zero sized packet if no samples are available
Marton Balint [Fri, 30 Sep 2016 09:08:51 +0000 (11:08 +0200)]
lavd/openal: don't return zero sized packet if no samples are available

Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agolavc/utils: disallow zero sized packets with data set in avcodec_send_packet
Marton Balint [Fri, 30 Sep 2016 08:58:19 +0000 (10:58 +0200)]
lavc/utils: disallow zero sized packets with data set in avcodec_send_packet

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agolavf/bink.c: fix warning due to misleading indentation
Adriano Pallavicino [Sun, 2 Oct 2016 16:16:21 +0000 (18:16 +0200)]
lavf/bink.c: fix warning due to misleading indentation

Signed-off-by: Adriano Pallavicino <adriano.pallavicino@gmail.com>
Signed-off-by: Josh de Kock <josh@itanimul.li>
3 years agoMAINTAINERS: add myself for hwcontext_cuda
Timo Rothenpieler [Sun, 2 Oct 2016 16:41:45 +0000 (18:41 +0200)]
MAINTAINERS: add myself for hwcontext_cuda

3 years agoavutil/hwcontext_cuda: align allocated frames
Timo Rothenpieler [Sat, 1 Oct 2016 16:57:44 +0000 (18:57 +0200)]
avutil/hwcontext_cuda: align allocated frames

3 years agolavc/mediacodecdec_h2645: fix nalu data_size type
Matthieu Bouron [Fri, 30 Sep 2016 16:32:11 +0000 (18:32 +0200)]
lavc/mediacodecdec_h2645: fix nalu data_size type

3 years agofate: add bitexact decode flag to fate-svq3-watermark
James Almer [Mon, 3 Oct 2016 04:38:43 +0000 (01:38 -0300)]
fate: add bitexact decode flag to fate-svq3-watermark

Fixes failure with mmxext or 3dnow cpuflags enabled but ssse3 disabled

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agofate: Add PSP copy test
Michael Niedermayer [Sat, 1 Oct 2016 19:04:40 +0000 (21:04 +0200)]
fate: Add PSP copy test

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc/t2h: use container
Josh de Kock [Sat, 1 Oct 2016 01:27:37 +0000 (02:27 +0100)]
doc/t2h: use container

Full width text is really difficult to read, this makes it more
more legible on larger (widescreen) screens. It also means we aren't
inventing our own container instead of using the bootstrap one.

Signed-off-by: Josh de Kock <josh@itanimul.li>
3 years agoconfigure: define posix source on cygwin
Timo Rothenpieler [Fri, 30 Sep 2016 10:17:16 +0000 (12:17 +0200)]
configure: define posix source on cygwin

Some function definitions are missing without it,
for example sigaction.

Fixes ticket #5868

3 years agoffplay: remove unused viddec_width/viddec_height
Marton Balint [Sat, 1 Oct 2016 16:13:55 +0000 (18:13 +0200)]
ffplay: remove unused viddec_width/viddec_height

Reviewed-by: Josh de Kock <josh@itanimul.li>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoffplay: use decoder avctx for decoded subtitle width/height
Marton Balint [Sat, 1 Oct 2016 16:05:47 +0000 (18:05 +0200)]
ffplay: use decoder avctx for decoded subtitle width/height

Fixes ticket #5873.

Reviewed-by: Josh de Kock <josh@itanimul.li>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoavcodec: fix arguments on xmm/neon clobber test wrappers
James Almer [Sun, 2 Oct 2016 05:15:47 +0000 (02:15 -0300)]
avcodec: fix arguments on xmm/neon clobber test wrappers

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoChangelog: Compress slightly to improve readability.
Carl Eugen Hoyos [Sun, 2 Oct 2016 01:28:43 +0000 (03:28 +0200)]
Changelog: Compress slightly to improve readability.

3 years agolavc: remove libfaac wrapper
Josh de Kock [Thu, 29 Sep 2016 20:54:42 +0000 (21:54 +0100)]
lavc: remove libfaac wrapper

There is really no need for two aac wrappers, we already have
libfdk-aac which is better. Not to mention that faac doesn't
even support HEv1, or HEv2. It's also under a license which is
unusable for distribution, so it would only be useful to people
who will compile their own ffmpeg, only use it themselves (which
at that point should just use fdk-aac).

Signed-off-by: Josh de Kock <josh@itanimul.li>
3 years agoavcodec: add missing xmm/neon clobber test wrappers for the new encode API
James Almer [Sat, 1 Oct 2016 16:23:56 +0000 (13:23 -0300)]
avcodec: add missing xmm/neon clobber test wrappers for the new encode API

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agolavfi/metadata: allow deleting all metadata
Marton Balint [Sat, 1 Oct 2016 11:55:35 +0000 (13:55 +0200)]
lavfi/metadata: allow deleting all metadata

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agolavfi/metadata: fix setting metadata values
Marton Balint [Sat, 1 Oct 2016 12:15:27 +0000 (14:15 +0200)]
lavfi/metadata: fix setting metadata values

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoffmpeg: use new encode API
wm4 [Sat, 1 Oct 2016 15:23:02 +0000 (17:23 +0200)]
ffmpeg: use new encode API

3 years agoffmpeg: use new decode API
wm4 [Sat, 1 Oct 2016 15:22:15 +0000 (17:22 +0200)]
ffmpeg: use new decode API

This is a bit messy, mainly due to timestamp handling.

decode_video() relied on the fact that it could set dts on a flush/drain
packet. This is not possible with the old API, and won't be. (I think
doing this was very questionable with the old API. Flush packets should
not contain any information; they just cause a FIFO to be emptied.) This
is replaced with checking the best_effort_timestamp for AV_NOPTS_VALUE,
and using the suggested DTS in the drain case.

The modified tests (fate-cavs and others) still fails due to dropping
the last frame. This happens because the timestamp of the last frame
goes backwards (ffprobe -show_frames shows the same thing). I suspect
that this "worked" due to the best effort timestamp logic picking the
DTS over the decreasing PTS. Since this logic is in libavcodec (where
it probably shouldn't be), this can't be easily fixed. The timestamps
of the cavs samples are weird anyway, so I chose not to fix it.

Another strange thing is the timestamp handling in the video path of
process_input_packet (after the decode_video() call). It looks like
the code to increase next_dts and next_pts should be run every time
a frame is decoded - but it's needed even if output is skipped.

3 years agoffmpeg: move subframe warning to libavcodec
wm4 [Sat, 1 Oct 2016 15:22:02 +0000 (17:22 +0200)]
ffmpeg: move subframe warning to libavcodec

With the new decode API, doing this in ffmpeg.c is impractical. There
was resistance against removing the warning, so put it into libavcodec.

Not bothering with reducing the warning to verbose log level for
subsequent wanrings. The warning should be rare, and only happen when
developing new codecs for the old API.

Includes a change suggested by Michael Niedermayer.

3 years agodoc/libav-merge: add a note for the skipped QSV functionality
Hendrik Leppkes [Sat, 1 Oct 2016 13:20:44 +0000 (15:20 +0200)]
doc/libav-merge: add a note for the skipped QSV functionality

3 years agoMerge commit 'ac7bfd69678f3966e38debdb27f4bde94dc0345c'
Hendrik Leppkes [Sat, 1 Oct 2016 13:19:18 +0000 (15:19 +0200)]
Merge commit 'ac7bfd69678f3966e38debdb27f4bde94dc0345c'

* commit 'ac7bfd69678f3966e38debdb27f4bde94dc0345c':
  lavfi: add a QSV scaling filter

This is a noop since it depends on sharing a hwcontext with the
decoder/encoder, see 04b17ff and 130e1f1

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoMerge commit 'ad9c9440d592e4d53d6bec9961b4b22e25387d70'
Hendrik Leppkes [Sat, 1 Oct 2016 13:03:20 +0000 (15:03 +0200)]
Merge commit 'ad9c9440d592e4d53d6bec9961b4b22e25387d70'

* commit 'ad9c9440d592e4d53d6bec9961b4b22e25387d70':
  qsvenc: support getting the session from an AVHWFramesContext

This commit is a noop, as it needs to be fully re-implemented for our
qsv components.

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agoMerge commit 'a0524d9b1e1bb0012207584f067096df7792df6c'
Hendrik Leppkes [Sat, 1 Oct 2016 13:02:32 +0000 (15:02 +0200)]
Merge commit 'a0524d9b1e1bb0012207584f067096df7792df6c'

* commit 'a0524d9b1e1bb0012207584f067096df7792df6c':
  qsvdec: support getting the session from an AVHWFramesContext

This commit is a noop, as it needs to be fully re-implemented for our qsv
components.

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
3 years agodoc/libav-merge: complete TODO section
Clément Bœsch [Sun, 25 Sep 2016 17:34:36 +0000 (19:34 +0200)]
doc/libav-merge: complete TODO section

3 years agofate: Add regression test for Ticket 186
Michael Niedermayer [Fri, 30 Sep 2016 23:41:41 +0000 (01:41 +0200)]
fate: Add regression test for Ticket 186

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agofate: Add fate-svq3-watermark
Michael Niedermayer [Fri, 30 Sep 2016 23:36:55 +0000 (01:36 +0200)]
fate: Add fate-svq3-watermark

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/hlsenc: support mkdir_p for use_localtime_mkdir
Steven Liu [Wed, 28 Sep 2016 08:09:05 +0000 (16:09 +0800)]
avformat/hlsenc: support mkdir_p for use_localtime_mkdir

when use use_localtime_mkdir to create multi level dir,
ffmpeg give error message:
ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -c copy -use_localtime 1
 -use_localtime_mkdir 1 -hls_segment_filename '%Y%m%d/file-%Y%m%d/%s.ts'
out.m3u8
error message:
Could not create directory 20160926/file-20160926 with use_localtime_mkdir
add mkdir_p for support the multi level dir

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Tested-by: Zuo Genyu <1515161258@qq.com> (Windows)
Signed-off-by: Steven Liu <lingjiujianke@gmail.com>
3 years agodoc/examples: build http_multiclient example
Clément Bœsch [Fri, 30 Sep 2016 17:35:28 +0000 (19:35 +0200)]
doc/examples: build http_multiclient example

3 years agodoc/examples/gitignore: add forgotten qsvdec entry
Clément Bœsch [Fri, 30 Sep 2016 17:35:07 +0000 (19:35 +0200)]
doc/examples/gitignore: add forgotten qsvdec entry

3 years agobuild: remove references to inexistant avcodec example
Clément Bœsch [Fri, 30 Sep 2016 17:34:35 +0000 (19:34 +0200)]
build: remove references to inexistant avcodec example

3 years agodoc/examples/http_multiclient: fix mixed declarations and code
Clément Bœsch [Fri, 30 Sep 2016 17:33:35 +0000 (19:33 +0200)]
doc/examples/http_multiclient: fix mixed declarations and code

3 years agodoc/examples/http_multiclient: fix compilation
Clément Bœsch [Fri, 30 Sep 2016 17:33:03 +0000 (19:33 +0200)]
doc/examples/http_multiclient: fix compilation

Fixes error: no previous prototype for ‘process_client’ [-Werror=missing-prototypes]

3 years agobuild: fix avio_dir_cmd and avio_reading example dependencies
Clément Bœsch [Fri, 30 Sep 2016 17:32:13 +0000 (19:32 +0200)]
build: fix avio_dir_cmd and avio_reading example dependencies

3 years agobuild: sort EXAMPLE_LIST
Clément Bœsch [Fri, 30 Sep 2016 17:31:30 +0000 (19:31 +0200)]
build: sort EXAMPLE_LIST

3 years agoavutil/hwcontext_cuda: use proper synchronization flag
Timo Rothenpieler [Thu, 29 Sep 2016 18:40:23 +0000 (20:40 +0200)]
avutil/hwcontext_cuda: use proper synchronization flag

3 years agoavcodec/cuvid: make use of new av_hwdevice_ctx_create api
Timo Rothenpieler [Thu, 29 Sep 2016 17:40:42 +0000 (19:40 +0200)]
avcodec/cuvid: make use of new av_hwdevice_ctx_create api

3 years agoavcodec/cuvid: support a pre-initialized hw_frames_ctx
Timo Rothenpieler [Thu, 29 Sep 2016 16:58:49 +0000 (18:58 +0200)]
avcodec/cuvid: support a pre-initialized hw_frames_ctx

3 years agoavcodec/cuvid: use actual frame size for buffer allocation
Timo Rothenpieler [Thu, 29 Sep 2016 16:56:39 +0000 (18:56 +0200)]
avcodec/cuvid: use actual frame size for buffer allocation

3 years agoavformat/tee: Copy interrupt callback and flags to slave
Jan Sebechlebsky [Fri, 12 Aug 2016 20:30:03 +0000 (22:30 +0200)]
avformat/tee: Copy interrupt callback and flags to slave

Copy interrupt callback to slave format context to allow
user to interrupt IO. Copy format flags as well.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
3 years agoffmpeg_cuvid: make use of new av_hwdevice_ctx_create api
Timo Rothenpieler [Thu, 29 Sep 2016 09:11:24 +0000 (11:11 +0200)]
ffmpeg_cuvid: make use of new av_hwdevice_ctx_create api

3 years agoffmpeg: pass the hwaccel frames context to the decoder
Anton Khirnov [Thu, 29 Sep 2016 08:29:10 +0000 (10:29 +0200)]
ffmpeg: pass the hwaccel frames context to the decoder

3 years agolavf/movenc: Put correct display aspect ratio in ARES atom.
Carl Eugen Hoyos [Thu, 29 Sep 2016 13:41:17 +0000 (15:41 +0200)]
lavf/movenc: Put correct display aspect ratio in ARES atom.

3 years agolavf/mov: Read display aspect ratio from ares atom also for dnxhd.
Carl Eugen Hoyos [Thu, 29 Sep 2016 13:29:03 +0000 (15:29 +0200)]
lavf/mov: Read display aspect ratio from ares atom also for dnxhd.

Fixes aspect ratio of sample in ticket #2125.
Fixes aspect ratio of sample in ticket #5325.

3 years agoChangelog: Mention edts support.
Carl Eugen Hoyos [Thu, 29 Sep 2016 12:44:08 +0000 (14:44 +0200)]
Changelog: Mention edts support.

3 years agomovenc: Add support for writing language codes into ISML manifests
Jan Ekström [Mon, 26 Sep 2016 22:10:22 +0000 (01:10 +0300)]
movenc: Add support for writing language codes into ISML manifests

Streaming servers appear to ignore all other language metadata.

Signed-off-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Josh de Kock <josh@itanimul.li>