]> git.sesse.net Git - ffmpeg/log
ffmpeg
7 years agohwcontext_qsv: Support derivation from child devices
Mark Thompson [Sat, 4 Mar 2017 23:57:43 +0000 (23:57 +0000)]
hwcontext_qsv: Support derivation from child devices

7 years agoavconv: Support setting the hardware device to use when filtering
Mark Thompson [Sat, 4 Mar 2017 23:57:38 +0000 (23:57 +0000)]
avconv: Support setting the hardware device to use when filtering

This only supports one device globally, but more can be used by
passing them with input streams in hw_frames_ctx or by deriving new
devices inside a filter graph with hwmap.

7 years agoavconv_hw: Add implicit device creation with default parameters
Mark Thompson [Sun, 30 Apr 2017 13:11:51 +0000 (14:11 +0100)]
avconv_hw: Add implicit device creation with default parameters

If -hwaccel foo is supplied without any other device options, and the
foo hwaccel is meant to have a device, try to make such a device with
default parameters for the hwaccel to use.

7 years agovp9_raw_reorder_bsf: Remove a redundant allocation
Mark Thompson [Wed, 26 Apr 2017 20:39:54 +0000 (21:39 +0100)]
vp9_raw_reorder_bsf: Remove a redundant allocation

This was left over from an earlier version which created the new
packet inside the current frame structure.  Now it just leaks an
unused packet, so remove the allocation entirely.

7 years agompeg4audio: Make avpriv_copy_pce_data() inline
Anton Khirnov [Thu, 16 Mar 2017 16:34:12 +0000 (17:34 +0100)]
mpeg4audio: Make avpriv_copy_pce_data() inline

The function currently accepts a PutBitContext and a GetBitContext,
which hardcodes their sizes into the lavc ABI. Since the function is
quite small and only called in a few places, the simplest solution is
making it inline, thus avoiding a runtime dependency completely.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoarm: hevc_idct: Tune the add_res_8x8 and add_res_32x32 functions
Martin Storsjö [Thu, 27 Apr 2017 21:36:40 +0000 (00:36 +0300)]
arm: hevc_idct: Tune the add_res_8x8 and add_res_32x32 functions

Before:              Cortex     A7      A8      A9     A53
hevc_add_res_8x8_8_neon:     116.0    58.7    80.2    90.7
hevc_add_res_32x32_8_neon:  1230.0   737.5  1187.5   974.4
After:
hevc_add_res_8x8_8_neon:      97.7    57.0    73.7    80.0
hevc_add_res_32x32_8_neon:  1216.0   698.7  1127.5   827.1

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agohevc: Add NEON add_residual for bitdepth 8
Seppo Tomperi [Thu, 27 Apr 2017 19:05:29 +0000 (21:05 +0200)]
hevc: Add NEON add_residual for bitdepth 8

Optimized by Alexandra Hájková.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agomlp_parser: Drop in-parser downmix functionality
Vittorio Giovara [Wed, 26 Apr 2017 15:08:17 +0000 (11:08 -0400)]
mlp_parser: Drop in-parser downmix functionality

request_channel_layout is a decoder option and it makes no sense
to have it in a parser.

This feature was needed in the past when the decoder was allowed
to reuse the avctx from the demuxer. Nowadays the decoder receives
only the parameters from it, already containing the real channel
layout (and the correct request_channel_layout option).

After initialization the decoder overwrites the channel layout
with the downmixed one that is actually output, so there is no need
to preserve this functionality in the parser.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
7 years agoaac_ac3_parser: Drop in-parser downmix functionality
Vittorio Giovara [Wed, 26 Apr 2017 15:08:17 +0000 (11:08 -0400)]
aac_ac3_parser: Drop in-parser downmix functionality

request_channel_layout is a decoder option and it makes no sense
to have it in a parser.

This feature was needed in the past when the decoder was allowed
to reuse the avctx from the demuxer. Nowadays the decoder receives
only the parameters from it, already containing the real channel
layout (and the correct request_channel_layout option).

After initialization the decoder overwrites the channel layout
with the downmixed one that is actually output, so there is no need
to preserve this functionality in the parser.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
7 years agoavprobe: use av_spherical_projection_name() to print spherical projection names
James Almer [Tue, 4 Apr 2017 20:24:19 +0000 (17:24 -0300)]
avprobe: use av_spherical_projection_name() to print spherical projection names

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agodump: use av_spherical_projection_name() to print spherical projection names
James Almer [Tue, 4 Apr 2017 20:24:18 +0000 (17:24 -0300)]
dump: use av_spherical_projection_name() to print spherical projection names

Signed-off-by: James Almer <jamrial@gmail.com>
7 years agospherical: add functions to retrieve and request projection names
James Almer [Thu, 20 Apr 2017 15:40:48 +0000 (11:40 -0400)]
spherical: add functions to retrieve and request projection names

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
7 years agovaapi: Add external control of allow-profile-mismatch
Mark Thompson [Mon, 27 Mar 2017 19:46:11 +0000 (20:46 +0100)]
vaapi: Add external control of allow-profile-mismatch

Uses the just-added ALLOW_PROFILE_MISMATCH flag.

7 years agolavc: Add flag to allow profile mismatch with hardware decoding
Mark Thompson [Mon, 27 Mar 2017 19:45:21 +0000 (20:45 +0100)]
lavc: Add flag to allow profile mismatch with hardware decoding

7 years agovaapi_encode: Use gop_size consistently in RC parameters
Mark Thompson [Sun, 2 Apr 2017 22:05:13 +0000 (23:05 +0100)]
vaapi_encode: Use gop_size consistently in RC parameters

The non-H.26[45] codecs already use this form.  Since we don't
currently generate I frames for codecs which support them separately
to IDR, the p_per_i variable is set to infinity by default so that it
doesn't interfere with any other calculation.  (All the code for I
frames still exists, and it works for H.264 if set manually.)

7 years agoavfoundation: update to use AVCodecParameters
Vittorio Giovara [Wed, 26 Apr 2017 15:31:28 +0000 (11:31 -0400)]
avfoundation: update to use AVCodecParameters

7 years agomlp: Factor out channel layout subset checks
Vittorio Giovara [Tue, 25 Apr 2017 20:26:58 +0000 (16:26 -0400)]
mlp: Factor out channel layout subset checks

7 years agomlp: Drop ff_ prefix from a static function
Vittorio Giovara [Tue, 25 Apr 2017 20:26:57 +0000 (16:26 -0400)]
mlp: Drop ff_ prefix from a static function

7 years agomlp: Rename the channel layout variable
Vittorio Giovara [Tue, 25 Apr 2017 20:26:56 +0000 (16:26 -0400)]
mlp: Rename the channel layout variable

Purely cosmetic change, will make code more readable once the new
channel layout takes over.

7 years agomatroskaenc: don't warn about unknown spherical metadata when there isn't any
James Almer [Fri, 14 Apr 2017 16:06:35 +0000 (13:06 -0300)]
matroskaenc: don't warn about unknown spherical metadata when there isn't any

The same warning is issued when actual unknown spherical metadata is
found further down in the function.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agomem: uninline av_malloc(z)_array()
Anton Khirnov [Thu, 30 Mar 2017 15:02:39 +0000 (17:02 +0200)]
mem: uninline av_malloc(z)_array()

Inlining public functions hardcodes their implementation into the ABI,
so it should be avoided unless there is a very good reason for it. No
such reason exists in this case.

7 years agohevc: Add support for bitdepth 10 for IDCT DC
Alexandra Hájková [Tue, 25 Apr 2017 17:43:41 +0000 (19:43 +0200)]
hevc: Add support for bitdepth 10 for IDCT DC

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agohevc: Add NEON IDCT DC functions for bitdepth 8
Seppo Tomperi [Tue, 25 Apr 2017 17:41:29 +0000 (19:41 +0200)]
hevc: Add NEON IDCT DC functions for bitdepth 8

Signed-off-by: Alexandra Hájková <alexandra@khirnov.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoclearvideo: Convert to the new bitstream reader
Diego Biurrun [Fri, 14 Apr 2017 18:42:47 +0000 (20:42 +0200)]
clearvideo: Convert to the new bitstream reader

7 years agoAdd ClearVideo decoder
Kostya Shishkov [Thu, 2 Mar 2017 10:21:48 +0000 (11:21 +0100)]
Add ClearVideo decoder

Only I-frames are decoded for now.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agoavprobe: Handle unknown values for the color description
Luca Barbato [Mon, 17 Apr 2017 13:48:54 +0000 (13:48 +0000)]
avprobe: Handle unknown values for the color description

print_str() cannot print NULL.

Bug-Id: 1040
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoutvideodec: Fix gradient prediction when stride does not match width
Paul B Mahol [Fri, 21 Apr 2017 19:44:28 +0000 (21:44 +0200)]
utvideodec: Fix gradient prediction when stride does not match width

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoutvideodec: Fix decoding odd sizes with interlaced video with some formats
Paul B Mahol [Fri, 21 Apr 2017 10:27:17 +0000 (12:27 +0200)]
utvideodec: Fix decoding odd sizes with interlaced video with some formats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoavplay: Do not try to allocate new frames when the player is closing
Luca Barbato [Mon, 17 Apr 2017 22:22:17 +0000 (22:22 +0000)]
avplay: Do not try to allocate new frames when the player is closing

The allocation event can trigger while the decoding thread is already
closing.

Bug-Id: 1052
CC: libav-stable@libav.org
7 years agoconfigure: Fix sem_timedwait probe
Luca Barbato [Sun, 23 Apr 2017 14:10:20 +0000 (14:10 +0000)]
configure: Fix sem_timedwait probe

It requires pthreads.

7 years agoconfigure: Properly escape arguments in filter/filter_out helper functions
Luca Barbato [Thu, 6 Apr 2017 16:14:29 +0000 (18:14 +0200)]
configure: Properly escape arguments in filter/filter_out helper functions

The arguments may contain '$', which gets interpreted by the shell.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agodca: Move the downmix request check outside the loop
Anton Khirnov [Mon, 24 Apr 2017 20:39:32 +0000 (22:39 +0200)]
dca: Move the downmix request check outside the loop

7 years agovc1dec: raise an error if sprite picture data is missing
Sean McGovern [Sat, 22 Apr 2017 23:16:34 +0000 (19:16 -0400)]
vc1dec: raise an error if sprite picture data is missing

Bug-Id: 1013
CC: libav-stable@libav.org
7 years agodoc/examples/output: Cast pointer to the right (const) type
Diego Biurrun [Sat, 22 Apr 2017 11:19:04 +0000 (13:19 +0200)]
doc/examples/output: Cast pointer to the right (const) type

doc/examples/output.c:512:33: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type

7 years agodoc/examples/filter_audio: const correctness
Diego Biurrun [Sat, 22 Apr 2017 11:12:29 +0000 (13:12 +0200)]
doc/examples/filter_audio: const correctness

doc/examples/filter_audio.c:168:17: warning: assignment discards ‘const’ qualifier from pointer target type

7 years agoswscale-test: const correctness
Diego Biurrun [Wed, 19 Apr 2017 09:11:09 +0000 (11:11 +0200)]
swscale-test: const correctness

7 years agoqsvenc: Make sure the interlaced encoding works
Aaron Levinson [Mon, 17 Apr 2017 01:06:37 +0000 (18:06 -0700)]
qsvenc: Make sure the interlaced encoding works

And reduce the vertical alignment constraint when possible to reduce the
memory usage.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoqsvenc: Use MFXVideoENCODE_Query() to update the parameters
Aaron Levinson [Mon, 17 Apr 2017 01:07:42 +0000 (18:07 -0700)]
qsvenc: Use MFXVideoENCODE_Query() to update the parameters

Fill out the default/unset parameters with ones actually in use.

Matches the current MediaSDK example code.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agocheckasm: hevc: Add a hevc_ prefix to the add_residual functions
Martin Storsjö [Wed, 19 Apr 2017 07:37:51 +0000 (10:37 +0300)]
checkasm: hevc: Add a hevc_ prefix to the add_residual functions

This makes it easier to group them with the rest when running e.g.
--bench=hevc.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agomm: Skip unexpected audio packets
Luca Barbato [Mon, 17 Apr 2017 19:25:35 +0000 (19:25 +0000)]
mm: Skip unexpected audio packets

Bug-Id: 1046
CC: libav-stable@libav.org
7 years agomjpeg: Report non-3 component rgb lossless as not supported
Luca Barbato [Mon, 17 Apr 2017 19:11:57 +0000 (19:11 +0000)]
mjpeg: Report non-3 component rgb lossless as not supported

Bug-Id: 1043
CC: libav-stable@libav.org
7 years agoflv: Validate the packet size
Luca Barbato [Mon, 17 Apr 2017 14:10:52 +0000 (14:10 +0000)]
flv: Validate the packet size

Size can be negative at that point.

Bug-Id: 1041
CC: libav-stable@libav.org
7 years agotravis: Exclude gcc for the macOS target
Luca Barbato [Tue, 18 Apr 2017 18:21:35 +0000 (20:21 +0200)]
travis: Exclude gcc for the macOS target

On a normal macOS setup, 'gcc' is a symlink to clang. Therefore there is
little point in running the tests twice, with CC=gcc and CC=clang.

7 years agodca: Account for lfe when checking for the channel count
Luca Barbato [Mon, 17 Apr 2017 12:53:14 +0000 (12:53 +0000)]
dca: Account for lfe when checking for the channel count

Bug-Id: 1037
CC: libav-stable@libav.org
7 years agoswscale: Convert the check check_image_pointers helper to a macro
Luca Barbato [Sat, 15 Apr 2017 12:55:33 +0000 (14:55 +0200)]
swscale: Convert the check check_image_pointers helper to a macro

Avoid warnings about types mismatch and make the code a little simpler.

7 years agoswscale: Do not shift negative values directly
Luca Barbato [Sat, 15 Apr 2017 12:39:45 +0000 (14:39 +0200)]
swscale: Do not shift negative values directly

It is undefined in C as reported:
    warning: shifting a negative signed value is undefined

7 years agoutvideodec: Support for gradient prediction
Paul B Mahol [Fri, 7 Apr 2017 18:09:22 +0000 (20:09 +0200)]
utvideodec: Support for gradient prediction

Introduced with utvideo 18.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoutvideodec: Reuse the huffyuv add_left
Paul B Mahol [Fri, 23 Dec 2016 14:41:51 +0000 (15:41 +0100)]
utvideodec: Reuse the huffyuv add_left

~10% faster when simd is available.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoutvideodec: Support ULY4 and ULH4
Paul B Mahol [Sat, 3 Sep 2016 23:56:02 +0000 (01:56 +0200)]
utvideodec: Support ULY4 and ULH4

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoutvideodec: Support UQRA and UQRG
Paul B Mahol [Mon, 10 Apr 2017 09:35:00 +0000 (11:35 +0200)]
utvideodec: Support UQRA and UQRG

7 years agoswscale: Add gbrap10 output
Michael Niedermayer [Wed, 9 Nov 2016 23:02:50 +0000 (00:02 +0100)]
swscale: Add gbrap10 output

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoswscale: Add input support for gbrap10 pixel format
Paul B Mahol [Fri, 10 Jun 2016 11:01:26 +0000 (13:01 +0200)]
swscale: Add input support for gbrap10 pixel format

Signed-off-by: Paul B Mahol <onemda@gmail.com>
7 years agopixfmt: Add gbrap10 pixel format
Paul B Mahol [Fri, 10 Jun 2016 10:48:09 +0000 (12:48 +0200)]
pixfmt: Add gbrap10 pixel format

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoutvideodec: Support UQY2
Paul B Mahol [Mon, 10 Apr 2017 09:08:44 +0000 (11:08 +0200)]
utvideodec: Support UQY2

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agoavformat: Free the internal codec context at the end
Luca Barbato [Tue, 11 Apr 2017 23:46:30 +0000 (01:46 +0200)]
avformat: Free the internal codec context at the end

Avoid a use after free in avformat_find_stream_info.

CC: libav-stable@libav.org
7 years agogolomb: Simplify get_ur_golomb_jpegls
Luca Barbato [Tue, 11 Apr 2017 10:11:59 +0000 (12:11 +0200)]
golomb: Simplify get_ur_golomb_jpegls

The loop always consumes the bit read and the new bitstream reader
can read 0 bits just fine.

7 years agoutvideodec: Prevent possible signed overflow
Ganesh Ajjanagadde [Tue, 23 Feb 2016 04:21:58 +0000 (23:21 -0500)]
utvideodec: Prevent possible signed overflow

Doing slice_end - slice_start is unsafe and can lead to undefined behavior
until slice_end has been properly sanitized.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agofmvc: Add FATE tests
Diego Biurrun [Tue, 21 Mar 2017 11:16:00 +0000 (12:16 +0100)]
fmvc: Add FATE tests

7 years agoAdd FM Screen Capture Codec decoder
Paul B Mahol [Mon, 6 Feb 2017 08:17:29 +0000 (09:17 +0100)]
Add FM Screen Capture Codec decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agohevc: Add NEON 16x16 IDCT
Alexandra Hájková [Wed, 12 Apr 2017 07:29:44 +0000 (09:29 +0200)]
hevc: Add NEON 16x16 IDCT

The speedup vs C code is around 6-13x.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoac3_parser: add a public function for parsing the data required by the demuxer
Anton Khirnov [Thu, 30 Mar 2017 14:56:28 +0000 (16:56 +0200)]
ac3_parser: add a public function for parsing the data required by the demuxer

Make the current semi-public avpriv_ac3_parse_header() private to lavc.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
7 years agothread: Define ff_mutex_* macros as stub functions when threads are disabled
Diego Biurrun [Fri, 31 Mar 2017 17:04:56 +0000 (19:04 +0200)]
thread: Define ff_mutex_* macros as stub functions when threads are disabled

Silences a bunch of "statement with no effect" warnings with threads disabled.

7 years agoexamples: Fixed and extended Doxygen documentation
Andreas Unterweger [Mon, 10 Apr 2017 11:06:18 +0000 (13:06 +0200)]
examples: Fixed and extended Doxygen documentation

Added parameter descriptions for all functions
 and converted in-function comments into regular
 (non-Doxygen) comments.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
7 years agodecode: Initialize ret before using it
Vittorio Giovara [Mon, 3 Apr 2017 19:58:15 +0000 (21:58 +0200)]
decode: Initialize ret before using it

libavcodec/decode.c:608:9: warning: variable 'ret' is
      used uninitialized whenever 'if' condition is false

7 years agofiltfmts-test: Mark filter as const
Vittorio Giovara [Tue, 4 Apr 2017 15:56:34 +0000 (17:56 +0200)]
filtfmts-test: Mark filter as const

libavfilter/tests/filtfmts.c:57:18: warning:
      assigning to 'AVFilter *' (aka 'struct AVFilter *') from
      'const AVFilter *' (aka 'const struct AVFilter *') discards qualifiers
      [-Wincompatible-pointer-types-discards-qualifiers]

7 years agolavfi: Drop unused and empty header file
Vittorio Giovara [Wed, 5 Apr 2017 13:35:26 +0000 (15:35 +0200)]
lavfi: Drop unused and empty header file

This header was public but deprecated on 2013-04-11 (lavfi 3.8.0).

7 years agomatroska: Read only the data written in the scratch buffer
Luca Barbato [Fri, 7 Apr 2017 09:41:27 +0000 (11:41 +0200)]
matroska: Read only the data written in the scratch buffer

The private buffer is 20bytes but depending on the type only 12 bytes
are actually filled.

7 years agompeg4videodec: raise an error if sprite_trajectory.table is NULL
Sean McGovern [Thu, 30 Mar 2017 20:21:38 +0000 (16:21 -0400)]
mpeg4videodec: raise an error if sprite_trajectory.table is NULL

CC: libav-stable@libav.org
Bug-Id: 1012

7 years agoconfigure: Better names for functions that sanitize input
Diego Biurrun [Tue, 21 Mar 2017 11:22:23 +0000 (12:22 +0100)]
configure: Better names for functions that sanitize input

7 years agomov: Move code shared with CAF to a separate file
Diego Biurrun [Tue, 14 Mar 2017 15:43:29 +0000 (16:43 +0100)]
mov: Move code shared with CAF to a separate file

7 years agoqsvenc: Allow use of hw_device_ctx to make the internal session
Mark Thompson [Sat, 4 Mar 2017 23:57:37 +0000 (23:57 +0000)]
qsvenc: Allow use of hw_device_ctx to make the internal session

7 years agoqsvdec: Allow use of hw_device_ctx to make the internal session
Mark Thompson [Sat, 4 Mar 2017 23:57:36 +0000 (23:57 +0000)]
qsvdec: Allow use of hw_device_ctx to make the internal session

7 years agoqsv: Add ability to create a session from a device
Mark Thompson [Sat, 4 Mar 2017 23:57:35 +0000 (23:57 +0000)]
qsv: Add ability to create a session from a device

7 years agodoc: Add VAAPI encoders
Mark Thompson [Sun, 19 Mar 2017 17:30:52 +0000 (17:30 +0000)]
doc: Add VAAPI encoders

7 years agovaapi_encode: Add VP9 support
Mark Thompson [Mon, 28 Nov 2016 23:54:57 +0000 (23:54 +0000)]
vaapi_encode: Add VP9 support

7 years agovp9: Add bsf to fix reordering in raw streams
Mark Thompson [Mon, 9 Jan 2017 23:08:49 +0000 (23:08 +0000)]
vp9: Add bsf to fix reordering in raw streams

Takes a raw input stream containing frames with correct timestamps but
possibly out of order and inserts additional show-existing-frame
packets to correct the ordering.

7 years agovp9: Add bsf to merge superframes
Ronald S. Bultje [Mon, 29 Feb 2016 14:43:07 +0000 (09:43 -0500)]
vp9: Add bsf to merge superframes

From ffmpeg commit 2e6636aa87303d37b112e79f093ca39500f92364.

7 years agoavconv: Flush output BSFs when encode reaches EOF
Mark Thompson [Tue, 14 Mar 2017 00:39:57 +0000 (00:39 +0000)]
avconv: Flush output BSFs when encode reaches EOF

Before this, output bitstream filters would never see EOF and
therefore would not be able to flush any delayed packets.

7 years agovf_deinterlace_vaapi: Add support for field rate output
Mark Thompson [Mon, 27 Feb 2017 21:29:46 +0000 (21:29 +0000)]
vf_deinterlace_vaapi: Add support for field rate output

In order to work correctly with the i965 driver, this also fixes the
direction of forward/backward references - forward references are
intended to be those from the past to the current frame, not from the
current frame to the future.

7 years agopthread_frame: Propagate sw_pix_fmt across threads
Mark Thompson [Thu, 30 Mar 2017 21:58:59 +0000 (22:58 +0100)]
pthread_frame: Propagate sw_pix_fmt across threads

7 years agolibavutil: Make LOCAL_ALIGNED(xx be equal to LOCAL_ALIGNED_xx(
Martin Storsjö [Wed, 29 Mar 2017 10:44:28 +0000 (13:44 +0300)]
libavutil: Make LOCAL_ALIGNED(xx be equal to LOCAL_ALIGNED_xx(

Previously, the former form always produced a manually aligned,
padded buffer, while the latter can use DECLARE_ALIGNED, if that
amount of stack alignment is supported.

libavutil/internal.h needs to include mem.h, since it uses
the DECLARE_ALIGNED macro.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agohevc: Avoid using LOCAL_ALIGNED for 4 byte alignment
Martin Storsjö [Wed, 29 Mar 2017 10:43:40 +0000 (13:43 +0300)]
hevc: Avoid using LOCAL_ALIGNED for 4 byte alignment

The data types within the MvField struct themselves imply 4 byte alignment.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agotakdec: Use ISO C printf conversion specifiers where appropriate
Diego Biurrun [Fri, 24 Mar 2017 16:35:06 +0000 (17:35 +0100)]
takdec: Use ISO C printf conversion specifiers where appropriate

libavformat/takdec.c:144:20: warning: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'uint32_t'

7 years agodcadec: remove extra indirection
Anton Khirnov [Wed, 29 Mar 2017 10:04:46 +0000 (12:04 +0200)]
dcadec: remove extra indirection

num_core_channels is always equal to s->audio_header.prim_channels,
neither one of those variables ever get changed.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
7 years agohevcdec: Use LOCAL_ALIGNED_* for declaring local variables with alignment
Martin Storsjö [Tue, 28 Mar 2017 09:53:58 +0000 (12:53 +0300)]
hevcdec: Use LOCAL_ALIGNED_* for declaring local variables with alignment

Not all compilers can do alignment larger than the normal stack alignment
for variables on the stack. In these cases, the LOCAL_ALIGNED_* macros
produce the workaround alignment wrapper consisting of a padded array
and a pointer variable.

This fixes the hevc fate tests on RVCT/ARMCC after adding IDCT assembly
that actually assumes/relies on this alignment.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoarm: Always build the hevcdsp_init_arm.c file
Martin Storsjö [Tue, 28 Mar 2017 08:05:53 +0000 (11:05 +0300)]
arm: Always build the hevcdsp_init_arm.c file

The main hevcdsp.c file calls this init function if HAVE_ARM is set,
regardless of whether neon support is available or not.

This fixes builds where neon isn't supported by the build tools at all.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agojack: Drop support for old (2012) JACK versions
Diego Biurrun [Tue, 21 Mar 2017 11:10:40 +0000 (12:10 +0100)]
jack: Drop support for old (2012) JACK versions

7 years agohwcontext: Move NONE to the be the first member of AVHWDeviceType
Mark Thompson [Thu, 23 Mar 2017 19:49:39 +0000 (19:49 +0000)]
hwcontext: Move NONE to the be the first member of AVHWDeviceType

Also use that to fix a warning in av_hwdevice_get_type_name().

7 years agohevc: Add NEON 4x4 and 8x8 IDCT
Alexandra Hájková [Mon, 27 Mar 2017 07:52:55 +0000 (09:52 +0200)]
hevc: Add NEON 4x4 and 8x8 IDCT

Optimized by Martin Storsjö <martin@martin.st>.

The speedup vs C code is around 3.2-4.4x.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoconfigure: Disable inline assembly for PathScale compilers
Diego Biurrun [Fri, 24 Mar 2017 19:30:22 +0000 (20:30 +0100)]
configure: Disable inline assembly for PathScale compilers

These compilers pass the inline assembly check, but fail to compile
our inline assembly in various ways.

7 years agonsvdec: don't ignore the return value of av_get_packet()
Sean McGovern [Fri, 24 Mar 2017 17:36:51 +0000 (13:36 -0400)]
nsvdec: don't ignore the return value of av_get_packet()

Fixes invalid reads with corrupted files.

CC: libav-stable@libav.org
Bug-Id: 1039

7 years agortmpproto: send swfverify value as swfurl if latter is unused
Ricardo Constantino [Mon, 20 Mar 2017 20:28:09 +0000 (20:28 +0000)]
rtmpproto: send swfverify value as swfurl if latter is unused

Replicates lavf/librtmp.c behavior in L145-152 and rtmpdump's
behavior with "--swfVfy <url>" passing the url to swfUrl.

Fixes bug 943.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoconfigure: Skip check for inline assembly capabilities when explicitly disabled
Diego Biurrun [Fri, 24 Mar 2017 19:24:08 +0000 (20:24 +0100)]
configure: Skip check for inline assembly capabilities when explicitly disabled

Otherwise inline assembly may get enabled when disabled on the command line.

7 years agoAPIchanges: Update bump dates
Vittorio Giovara [Thu, 23 Mar 2017 09:39:11 +0000 (10:39 +0100)]
APIchanges: Update bump dates

7 years agoavplay: Use the named syntax for buffersrc arguments
Luca Barbato [Thu, 23 Mar 2017 11:20:50 +0000 (12:20 +0100)]
avplay: Use the named syntax for buffersrc arguments

Avoid confusion.

7 years agovf_showinfo: Display spherical properties
Vittorio Giovara [Wed, 15 Mar 2017 21:55:18 +0000 (17:55 -0400)]
vf_showinfo: Display spherical properties

7 years agovf_showinfo: Simplify reporting stereo3d information
Vittorio Giovara [Wed, 15 Mar 2017 21:39:53 +0000 (17:39 -0400)]
vf_showinfo: Simplify reporting stereo3d information

7 years agospherical: Change types of bounding and pad to uint32_t
Vittorio Giovara [Tue, 14 Mar 2017 21:50:48 +0000 (17:50 -0400)]
spherical: Change types of bounding and pad to uint32_t

These values are defined to be 32bit in the specification,
so it makes more sense to store them as fixed width.

Based on a patch by Micahel Niedermayer <michael@niedermayer.cc>.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
7 years agolavu: Drop deprecated av_dlog macro
Vittorio Giovara [Thu, 16 Mar 2017 19:30:58 +0000 (15:30 -0400)]
lavu: Drop deprecated av_dlog macro

Deprecated in 05/2015.

7 years agolavu: Drop deprecated option type
Vittorio Giovara [Mon, 5 Dec 2016 22:22:49 +0000 (17:22 -0500)]
lavu: Drop deprecated option type

Deprecated in 02/2014.