ffmpeg.git
2 years agoavfilter/vf_gblur: add sigmaV option, different vertical filtering
Paul B Mahol [Sun, 4 Sep 2016 21:57:09 +0000 (23:57 +0200)]
avfilter/vf_gblur: add sigmaV option, different vertical filtering

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2 years agofate: Add test for ticket #5805.
Carl Eugen Hoyos [Sun, 4 Sep 2016 11:50:44 +0000 (13:50 +0200)]
fate: Add test for ticket #5805.

2 years agoavccodec/utvideoenc: support encoding ULY4 and ULH4
Paul B Mahol [Sun, 4 Sep 2016 13:51:33 +0000 (15:51 +0200)]
avccodec/utvideoenc: support encoding ULY4 and ULH4

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2 years agoavfilter/Makefile: move anullsrc and nullsink to correct place
Paul B Mahol [Sun, 4 Sep 2016 13:25:50 +0000 (15:25 +0200)]
avfilter/Makefile: move anullsrc and nullsink to correct place

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2 years agoavfilter/vf_bitplanenoise: silence clang warning, do not truncate value
Paul B Mahol [Sun, 4 Sep 2016 12:58:54 +0000 (14:58 +0200)]
avfilter/vf_bitplanenoise: silence clang warning, do not truncate value

2 years agoavfilter: add gblur filter
Paul B Mahol [Wed, 31 Aug 2016 23:18:45 +0000 (01:18 +0200)]
avfilter: add gblur filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2 years agodoc/filters: improve weave example
Paul B Mahol [Sun, 4 Sep 2016 12:51:04 +0000 (14:51 +0200)]
doc/filters: improve weave example

2 years agovf_colorspace: Allow overriding input color properties
Vittorio Giovara [Sat, 3 Sep 2016 13:19:35 +0000 (15:19 +0200)]
vf_colorspace: Allow overriding input color properties

The filter needs input frames with color properties filled out by
the decoder. Since this is not always possible, add input options to
the filter so that user may override color space, color primaries,
transfer characteristics, and color range, as well as a generic option
to set all properties at once.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2 years agofate: add 12bpp sample
Christophe Gisquet [Tue, 13 Oct 2015 19:21:41 +0000 (21:21 +0200)]
fate: add 12bpp sample

Allows testing simple_idct12 correctness/bitexactness, as the sample
was generated using faani as idct.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoconfigure: Remove fifo muxers dependency on pthreads.
Matt Oliver [Mon, 29 Aug 2016 06:56:32 +0000 (16:56 +1000)]
configure: Remove fifo muxers dependency on pthreads.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
2 years agoavcodec/utvideodec: add support for ULY4 and ULH4
Paul B Mahol [Sat, 3 Sep 2016 23:56:02 +0000 (01:56 +0200)]
avcodec/utvideodec: add support for ULY4 and ULH4

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2 years agoavcodec/utils: print only the padding values that are set
James Almer [Fri, 26 Aug 2016 18:39:37 +0000 (15:39 -0300)]
avcodec/utils: print only the padding values that are set

Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years agoavcodec/utils: print initial and trailing paddings only in verbose levels
James Almer [Fri, 26 Aug 2016 18:30:58 +0000 (15:30 -0300)]
avcodec/utils: print initial and trailing paddings only in verbose levels

Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years agolavf/udp: Do not use MCAST_* for multicast on tvOS.
Carl Eugen Hoyos [Sat, 3 Sep 2016 13:18:40 +0000 (15:18 +0200)]
lavf/udp: Do not use MCAST_* for multicast on tvOS.

Fixes ticket #5774.

2 years agolavf/webm_chunk: Print an error if no header filename was provided.
Carl Eugen Hoyos [Wed, 3 Aug 2016 16:40:03 +0000 (18:40 +0200)]
lavf/webm_chunk: Print an error if no header filename was provided.

2 years agoCosmetics: Reindent after e82b181f.
Carl Eugen Hoyos [Sat, 3 Sep 2016 12:23:32 +0000 (14:23 +0200)]
Cosmetics: Reindent after e82b181f.

2 years agolavc/mjpegdec: Only read JFIF thumbnail size if the segment is long enough.
Carl Eugen Hoyos [Sat, 3 Sep 2016 12:21:46 +0000 (14:21 +0200)]
lavc/mjpegdec: Only read JFIF thumbnail size if the segment is long enough.

Fixes ticket #5805.

2 years agoswscale/swscale_unscaled: Try to fix bayer_to_yv12_wrapper() with slices
Michael Niedermayer [Sat, 3 Sep 2016 10:24:36 +0000 (12:24 +0200)]
swscale/swscale_unscaled: Try to fix bayer_to_yv12_wrapper() with slices

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoswscale/swscale_unscaled: Try to fix Rgb16ToPlanarRgb16Wrapper() with slices
Michael Niedermayer [Sat, 3 Sep 2016 10:15:24 +0000 (12:15 +0200)]
swscale/swscale_unscaled: Try to fix Rgb16ToPlanarRgb16Wrapper() with slices

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agolavf/httpauth: Do case-insensitive http header checks.
Carl Eugen Hoyos [Sat, 3 Sep 2016 11:56:40 +0000 (13:56 +0200)]
lavf/httpauth: Do case-insensitive http header checks.

Tested by trac user NTAuthority.
Fixes ticket #5786.

2 years agolavf/img2dec: Skip DQT segment when auto-detecting jpg.
Carl Eugen Hoyos [Sat, 3 Sep 2016 11:38:16 +0000 (13:38 +0200)]
lavf/img2dec: Skip DQT segment when auto-detecting jpg.

DQT segments may contain 0xFFs which break auto-detection.

2 years agolavc/mjpegdec: Do not skip reading quantization tables.
Carl Eugen Hoyos [Fri, 2 Sep 2016 15:10:57 +0000 (17:10 +0200)]
lavc/mjpegdec: Do not skip reading quantization tables.

They may contain 0xFFs, confusing the start code finding algorithm.

Fixes ticket #5819.

2 years agoswscale: add unscaled copy from yuv420p10 to p010
Timo Rothenpieler [Thu, 1 Sep 2016 14:54:01 +0000 (16:54 +0200)]
swscale: add unscaled copy from yuv420p10 to p010

2 years agoconfigure: check for dlsym as well
Timo Rothenpieler [Thu, 1 Sep 2016 09:18:00 +0000 (11:18 +0200)]
configure: check for dlsym as well

For some reason, when compiling with gcc-asan and a recent enough gcc
version(seen on 5.3+ so far), linking dlopen works without -ldl, but
dlsym fails with:

undefined reference to symbol 'dlsym@@GLIBC_2.2.5'

So this patchs checks for both dlopen and dlsym to work for determining
if -ldl is needed.

2 years agoswscale/swscale_unscaled: Fix packed_16bpc_bswap() with slices
Michael Niedermayer [Fri, 2 Sep 2016 18:25:24 +0000 (20:25 +0200)]
swscale/swscale_unscaled: Fix packed_16bpc_bswap() with slices

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoswscale/swscale: Try to fix rgb48Toxyz12() with slices
Michael Niedermayer [Fri, 2 Sep 2016 14:52:55 +0000 (16:52 +0200)]
swscale/swscale: Try to fix rgb48Toxyz12() with slices

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoswscale/swscale: Factor bottom to top handling
Michael Niedermayer [Fri, 2 Sep 2016 14:35:36 +0000 (16:35 +0200)]
swscale/swscale: Factor bottom to top handling

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agodoc/filters: add weave example
Paul B Mahol [Fri, 2 Sep 2016 16:30:07 +0000 (18:30 +0200)]
doc/filters: add weave example

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2 years agoswscale/tests/swscale: add cpuflags option
Michael Niedermayer [Fri, 2 Sep 2016 12:55:27 +0000 (14:55 +0200)]
swscale/tests/swscale: add cpuflags option

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/vf_zscale: make possible to change chroma location
Paul B Mahol [Fri, 2 Sep 2016 14:03:58 +0000 (16:03 +0200)]
avfilter/vf_zscale: make possible to change chroma location

2 years agoavformat/avidec: Fix infinite loop in avi_read_nikon()
Michael Niedermayer [Fri, 2 Sep 2016 10:19:29 +0000 (12:19 +0200)]
avformat/avidec: Fix infinite loop in avi_read_nikon()

Fixes: 360/test.poc

Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/vf_minterpolate: rename chroma log vars
Davinder Singh [Tue, 30 Aug 2016 00:44:09 +0000 (06:14 +0530)]
avfilter/vf_minterpolate: rename chroma log vars

also use AVPixFmtDescriptor instead of avcodec_get_chroma_sub_sample()
for log2_chroma*.

2 years agoavfilter: add weave filter
Paul B Mahol [Thu, 18 Apr 2013 00:26:28 +0000 (00:26 +0000)]
avfilter: add weave filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
2 years agoffmpeg: fix broken indent/style in write_frame
Clément Bœsch [Fri, 2 Sep 2016 09:01:46 +0000 (11:01 +0200)]
ffmpeg: fix broken indent/style in write_frame

2 years agolibavcodec/opus: Add channel mapping 2 to extradata parser
Michael Graczyk [Thu, 1 Sep 2016 18:17:30 +0000 (11:17 -0700)]
libavcodec/opus: Add channel mapping 2 to extradata parser

This allows libavcodec/opus to demux ambisonics in an ogg/opus container.
Channel mapping family 2 is being added in this standards track IETF draft:
tools.ietf.org/html/draft-ietf-codec-ambisonics-00

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agolavu/timestamp: Avoid C++-unfriendly code in user header
Mark Thompson [Wed, 31 Aug 2016 19:48:45 +0000 (20:48 +0100)]
lavu/timestamp: Avoid C++-unfriendly code in user header

Including this header in a C++11 program (inside extern "C") will
throw an error because it looks like a user-defined literal.  Add a
space between the two tokens to avoid the problem.

2 years agolibavcodec/opus: Fix spelling in error message
Michael Graczyk [Thu, 1 Sep 2016 18:24:31 +0000 (11:24 -0700)]
libavcodec/opus: Fix spelling in error message

2 years agoconfigure: add missing check for LoadLibrary
James Almer [Thu, 1 Sep 2016 16:50:38 +0000 (13:50 -0300)]
configure: add missing check for LoadLibrary

Commit 2b1d316ff68a3f973d8f342db6bf9755eb78ec10 made nvenc depend on
LoadLibrary, but the availability of the latter was never checked.

This fixes nvenc on Windows platforms

Signed-off-by: James Almer <jamrial@gmail.com>
2 years agoavformat/movenc: added ability to use original stream ids as track ids instead of...
Erkki Seppälä [Wed, 31 Aug 2016 11:35:44 +0000 (14:35 +0300)]
avformat/movenc: added ability to use original stream ids as track ids instead of regenerating them

Sometimes it's useful to be able to define the exact track numbers in
the generated track, instead of always beginning at track id 1. Using
the option use_stream_ids_as_track_ids now copies the use stream ids
to track ids. Dynamically generated tracks (ie. tmcd) have their track
numbers defined as continuing from the highest numbered stream id.

Signed-off-by: Erkki Seppälä <erkki.seppala.ext@nokia.com>
Signed-off-by: OZOPlayer <OZOPL@nokia.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/vf_psnr: Add max value output option to psnr stats log.
Lucas Cooper [Wed, 31 Aug 2016 19:40:41 +0000 (12:40 -0700)]
avfilter/vf_psnr: Add max value output option to psnr stats log.

This allows retroactive calculation/aggregation of PSNR from the stats
log.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoconfigure: fix ldl dependency for new nvenc encoder names
Timo Rothenpieler [Wed, 31 Aug 2016 14:39:59 +0000 (16:39 +0200)]
configure: fix ldl dependency for new nvenc encoder names

2 years agoconfigure: fix nvenc detection logic
Timo Rothenpieler [Wed, 31 Aug 2016 13:40:00 +0000 (15:40 +0200)]
configure: fix nvenc detection logic

2 years agoswscale: add support for P010LE/BE output
Timo Rothenpieler [Mon, 29 Aug 2016 15:44:42 +0000 (17:44 +0200)]
swscale: add support for P010LE/BE output

2 years agoavfilter/drawutils: honor shift for color component description
Timo Rothenpieler [Wed, 31 Aug 2016 09:25:25 +0000 (11:25 +0200)]
avfilter/drawutils: honor shift for color component description

2 years agoavfilter/drawutils: P010 is not supported
Timo Rothenpieler [Wed, 31 Aug 2016 09:24:03 +0000 (11:24 +0200)]
avfilter/drawutils: P010 is not supported

2 years agoavfilter/vf_lut: unbreak planar rgb suppot on big-endian
Paul B Mahol [Wed, 31 Aug 2016 09:18:40 +0000 (11:18 +0200)]
avfilter/vf_lut: unbreak planar rgb suppot on big-endian

2 years agoavformat/hlsenc: add warning for append_list and hls_init_time option
Steven Liu [Tue, 30 Aug 2016 09:26:54 +0000 (17:26 +0800)]
avformat/hlsenc: add warning for append_list and hls_init_time option

When use append_list mode, the hls_init_time set nouse,
Because the append_list only support append at the old m3u8 end
cannot set init segments durations at the middle of the list.
That's invalid. and show a warning message for user.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoMAINTAINERS: Add myself for alsdec
Umair Khan [Mon, 29 Aug 2016 17:25:54 +0000 (22:55 +0530)]
MAINTAINERS: Add myself for alsdec

Signed-off-by: Umair Khan <omerjerk@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/crypto: add seeking support on read
Simon Hailes [Tue, 30 Aug 2016 08:40:14 +0000 (09:40 +0100)]
avformat/crypto: add seeking support on read

cyrpto allows reading of data which has been aes-128-cbc encrypted given a key and an iv. But it did not handle filetypes which require seeking... e.g. it failed on an encrypted .mp4 file.

example:
take 25.mp4 created with:
ffmpeg -f lavfi -i sine=frequency=1000:beep_factor=2:r=48000:duration=720.0 -f lavfi -i testsrc=duration=720.0:rate=25 -vcodec libx264 -cmp 22 -timecode 10:00:00:00 -r 25 -y out\25.mp4

encrypt with:
openssl enc -aes-128-cbc -K 12345678901234567890123456789012 -iv 12345678901234567890123456789012 -in 25.mp4 -out 25.enc
then to transcode in ffmpeg:
ffmpeg -key 12345678901234567890123456789012 -iv 12345678901234567890123456789012 -i crypto:25.enc -vcodec mpeg4 -r 25 -y 25dec.mp4

prior to this modification, the transcode would fail.

Note also:  crypto previously maked both reads and writes as streamed, which caused the whole file
to be read before the transcode started.  Now, for read only, if the underlying layer is not marked as streamed,
then crypto is not.  This should enable efficient reading of encrypted containers which require seeking.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agolibavformat/crypto - encourage reads of 4096 bytes
Simon Hailes [Tue, 30 Aug 2016 07:47:02 +0000 (08:47 +0100)]
libavformat/crypto - encourage reads of 4096 bytes

the current implementation reads in chunks of 149x16=2384 bytes.
Seems more logical for it to read in chunks of 4096

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agocmdutils: fix implicit declaration of SetDllDirectory function
Tobias Rapp [Mon, 29 Aug 2016 13:25:58 +0000 (15:25 +0200)]
cmdutils: fix implicit declaration of SetDllDirectory function

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years agodoc/APIChanges: mention nb_threads addition to AVFilterContext
James Almer [Mon, 29 Aug 2016 18:16:59 +0000 (15:16 -0300)]
doc/APIChanges: mention nb_threads addition to AVFilterContext

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years agoavisynth: support pix_fmts added to AviSynth+
Stephen Hutchinson [Tue, 16 Aug 2016 22:45:21 +0000 (18:45 -0400)]
avisynth: support pix_fmts added to AviSynth+

A number of new pix_fmts have been added to AviSynth+:
16-bit packed RGB and RGBA
10-, 12-, 14, and 16-bit YUV 4:2:0, 4:2:2, and 4:4:4
8-, 10-, 12-, 14-, and 16-bit Planar RGB
8-, 10-, 12-, 14-, and 16-bit Planar YUVA and Planar RGBA*
10-, 12-, 14-, and 16-bit GRAY variants*
32-bit floating point Planar YUV(A), Planar RGB(A), and GRAY*

*some of which are not currently available pix_fmts here and were
 not added to the demuxer due to this

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavutil/version: Improve lib versioning scheme for release branches with the next...
Michael Niedermayer [Sat, 6 Aug 2016 10:49:56 +0000 (12:49 +0200)]
avutil/version: Improve lib versioning scheme for release branches with the next major release

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavutil/version: Mention similarities and differences to semver
Michael Niedermayer [Sat, 6 Aug 2016 10:44:18 +0000 (12:44 +0200)]
avutil/version: Mention similarities and differences to semver

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/vf_minterpolate: do not right shift negative numbers
Davinder Singh [Mon, 29 Aug 2016 15:04:54 +0000 (17:04 +0200)]
avfilter/vf_minterpolate: do not right shift negative numbers

It was source of crashes. Use division instead.

Original patch by author. Log message by comitter.

2 years agoavfilter: make use of ff_filter_get_nb_threads
Paul B Mahol [Sat, 27 Aug 2016 20:44:42 +0000 (22:44 +0200)]
avfilter: make use of ff_filter_get_nb_threads

2 years agoavfilter: add ff_filter_get_nb_threads()
Paul B Mahol [Sat, 27 Aug 2016 20:22:58 +0000 (22:22 +0200)]
avfilter: add ff_filter_get_nb_threads()

2 years agoavfilter: add nb_threads to AVFilterContext
Paul B Mahol [Sat, 27 Aug 2016 20:10:10 +0000 (22:10 +0200)]
avfilter: add nb_threads to AVFilterContext

To be used in following commits.

2 years agodoc/muxers: add option hls_init_time document
Steven Liu [Fri, 26 Aug 2016 23:35:54 +0000 (07:35 +0800)]
doc/muxers: add option hls_init_time document

Reviewed-by: Ibrahim Tachijian <barhom@netsat.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/hlsenc: add option hls_init_time to set init hls window segment duration
Steven Liu [Sat, 27 Aug 2016 11:11:14 +0000 (19:11 +0800)]
avformat/hlsenc: add option hls_init_time to set init hls window segment duration

recover segments duration time by hls_time after init hls window.
This is reuqested by Ibrahim Tachijian

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/mov: aax: pass proper AVClass to av_log()
Thomas Hebb [Sun, 28 Aug 2016 16:24:55 +0000 (12:24 -0400)]
avformat/mov: aax: pass proper AVClass to av_log()

av_log() expects its first parameter to be a pointer to a struct whose
first element is a pointer to an AVClass. In what I can only imagine is
a typo, one call to av_log() in the AAX decryption code instead passes
a pointer to an AVSHA struct, which doesn't even contain a pointer as
its first element, much less a pointer to an AVClass. Change the call to
pass the current MOVContext, as surrounding calls do.

The incorrect AVClass was causing mpv to emit the warning "av_log
callback called with bad parameters" when playing an .aax file.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/nvenc: update license header
Timo Rothenpieler [Sun, 28 Aug 2016 17:51:22 +0000 (19:51 +0200)]
avcodec/nvenc: update license header

2 years agoavcodec/nvenc: use proper soname for cuda/nvenc libraries
Timo Rothenpieler [Sun, 28 Aug 2016 17:49:56 +0000 (19:49 +0200)]
avcodec/nvenc: use proper soname for cuda/nvenc libraries

2 years agoavcodec/nvenc: check maximum driver API version
Timo Rothenpieler [Sun, 28 Aug 2016 17:46:44 +0000 (19:46 +0200)]
avcodec/nvenc: check maximum driver API version

2 years agoavcodec/nvenc: fix potantially uninitialized free
Timo Rothenpieler [Sun, 28 Aug 2016 16:19:21 +0000 (18:19 +0200)]
avcodec/nvenc: fix potantially uninitialized free

2 years agoavcodec/nvenc: fix library names on cygwin
Timo Rothenpieler [Sun, 28 Aug 2016 15:54:29 +0000 (17:54 +0200)]
avcodec/nvenc: fix library names on cygwin

2 years agoffmpeg: fix -stream_loop with -re
Marton Balint [Thu, 30 Jun 2016 23:12:25 +0000 (01:12 +0200)]
ffmpeg: fix -stream_loop with -re

Otherwise the stream failed with EAGAIN.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
2 years agoavcodec/nvenc: added support for rate control lookahead
Oliver Collyer [Thu, 25 Aug 2016 15:20:03 +0000 (16:20 +0100)]
avcodec/nvenc: added support for rate control lookahead

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2 years agoavcodec/nvenc: added support for 10 bit HEVC encoding
Oliver Collyer [Thu, 25 Aug 2016 15:18:03 +0000 (16:18 +0100)]
avcodec/nvenc: added support for 10 bit HEVC encoding

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
2 years agoavcodec/nvenc: include nvEncodeAPI v7 SDK header
Timo Rothenpieler [Sat, 27 Aug 2016 12:39:35 +0000 (14:39 +0200)]
avcodec/nvenc: include nvEncodeAPI v7 SDK header

As Nvidia has put the most recent Video Codec SDK behind a double
registration wall, of which one needs manual approval of a lenghty
application, bundling this header saves everyone trying to use NVENC
from that headache.

The header is still MIT licensed and thus fine to bundle with ffmpeg.

Not bundling this header would get ffmpeg stuck at SDK v6, which is
still freely available, holding back future development of the NVENC
encoder.

2 years agoavformat: fix decoded creation_time timestamps
Marton Balint [Wed, 29 Jun 2016 22:55:48 +0000 (00:55 +0200)]
avformat: fix decoded creation_time timestamps

Use proper ISO 8601 timestamps which also signal that they are in UTC.

This changes the format of creation_time and modification_date metadata values
from 2016-06-01 22:30:00 to 2016-01-01T22:30:00.000000Z

Fixes ticket #5673.

Signed-off-by: Marton Balint <cus@passwd.hu>
2 years agoMAINTAINER: add myself for Motion Estimation and Interpolation filters
Davinder Singh [Fri, 26 Aug 2016 21:30:32 +0000 (03:00 +0530)]
MAINTAINER: add myself for Motion Estimation and Interpolation filters

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agolavc/lpc: Add min_shift parameter in LPC
Jai Luthra [Mon, 22 Aug 2016 21:02:04 +0000 (02:32 +0530)]
lavc/lpc: Add min_shift parameter in LPC

The min_shift parameter is needed by the MLP encoder

Signed-off-by: Jai Luthra <me@jailuthra.in>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter: hflip,swapuv,vflip: add timeline support
Paul B Mahol [Sun, 28 Aug 2016 09:00:06 +0000 (11:00 +0200)]
avfilter: hflip,swapuv,vflip: add timeline support

2 years agoavformat/utils: fix a codecpar non use
James Almer [Fri, 26 Aug 2016 18:28:21 +0000 (15:28 -0300)]
avformat/utils: fix a codecpar non use

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years agoavfilter/vf_convolution: add >8 bit depth support
Paul B Mahol [Sat, 27 Aug 2016 14:04:07 +0000 (16:04 +0200)]
avfilter/vf_convolution: add >8 bit depth support

2 years agoavfilter/vf_atadenoise: add planes option
Paul B Mahol [Sat, 27 Aug 2016 11:44:21 +0000 (13:44 +0200)]
avfilter/vf_atadenoise: add planes option

Make possible filtering only some planes.

2 years agovf_colorspace: Add support for full range yuv
Vittorio Giovara [Thu, 25 Aug 2016 23:14:58 +0000 (19:14 -0400)]
vf_colorspace: Add support for full range yuv

Whenever a full range video is input, since the YUVJ* formats are not
listed as supported for this filter, a range reduction takes place
through the auto-inserted format filter, forcing the conversion to
operate on a limited range,

However the filter handles full range videos perfectly fine, so adding
support to YUVJ* formats will allow skipping a conversion step, while
providing completely identical results.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agovf_colorspace: Check av_frame_copy_props() return value
Vittorio Giovara [Thu, 25 Aug 2016 23:14:57 +0000 (19:14 -0400)]
vf_colorspace: Check av_frame_copy_props() return value

This function can potentially allocate memory.

Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/utils: End probing if the expected codec surpasses AVPROBE_SCORE_STREAM_RETRY
Michael Niedermayer [Fri, 26 Aug 2016 23:12:49 +0000 (01:12 +0200)]
avformat/utils: End probing if the expected codec surpasses AVPROBE_SCORE_STREAM_RETRY

Fixes Ticket5800

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter: add vaguedenoiser filter
Paul B Mahol [Wed, 24 Aug 2016 20:13:03 +0000 (22:13 +0200)]
avfilter: add vaguedenoiser filter

2 years agoavfilter/motion_estimation: Fix pre processor formating
Michael Niedermayer [Fri, 26 Aug 2016 18:19:29 +0000 (20:19 +0200)]
avfilter/motion_estimation: Fix pre processor formating

IIRC, The spaces are not standard before the #

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agodoc/filters: fix anequalizer docs
Paul B Mahol [Fri, 26 Aug 2016 18:59:00 +0000 (20:59 +0200)]
doc/filters: fix anequalizer docs

2 years agotools/crypto_bench: add support for des
James Almer [Fri, 26 Aug 2016 18:43:44 +0000 (15:43 -0300)]
tools/crypto_bench: add support for des

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years agotools/crypto_bench: simplify gcrypt functions using a macro
James Almer [Fri, 26 Aug 2016 18:41:57 +0000 (15:41 -0300)]
tools/crypto_bench: simplify gcrypt functions using a macro

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years agoavfilter/motion_estimation: Fix warning: variable dir_x set but not used
Michael Niedermayer [Fri, 26 Aug 2016 18:17:39 +0000 (20:17 +0200)]
avfilter/motion_estimation: Fix warning: variable dir_x set but not used

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter: added motion estimation and interpolation filters
Davinder Singh [Tue, 23 Aug 2016 12:20:35 +0000 (17:50 +0530)]
avfilter: added motion estimation and interpolation filters

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agolibavcodec/bsfs: Fix bsf option setting
Jan Sebechlebsky [Thu, 25 Aug 2016 22:47:12 +0000 (00:47 +0200)]
libavcodec/bsfs: Fix bsf option setting

AV_OPT_SEARCH_CHILDREN flag must be passed to av_opt_set_dict()
to set options for private context.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoaf_hdcd: av_frame_free(out) if av_frame_copy_props() fails
Burt P [Thu, 25 Aug 2016 22:05:39 +0000 (17:05 -0500)]
af_hdcd: av_frame_free(out) if av_frame_copy_props() fails

Signed-off-by: Burt P <pburt0@gmail.com>
2 years agoaf_hdcd: for easier maintenance alongside libhdcd
Burt P [Mon, 22 Aug 2016 22:34:35 +0000 (17:34 -0500)]
af_hdcd: for easier maintenance alongside libhdcd

Mostly just re-arranges some code to make it easier to update this
filter and libhdcd together. filter_frame() is much simpler as a
result.

* use the HDCD detection data structure and functions from libhdcd,
  moved detection code out of filter_frame()
* moved analyze_mode preparation out of filter_frame() into
  hdcd_analyze_prepare(), from libhdcd
* moved some macro definitions to the top so they are all together

Signed-off-by: Burt P <pburt0@gmail.com>
2 years agowebm_chunk: Set pts precision to milliseconds
Vignesh Venkatasubramanian [Tue, 23 Aug 2016 00:13:23 +0000 (17:13 -0700)]
webm_chunk: Set pts precision to milliseconds

Milliseconds is the de-factor precision for timestamps in
Matroska/WebM media.

Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agomov: Remove old b-frame/video delay heuristic
Derek Buitenhuis [Thu, 25 Aug 2016 15:58:15 +0000 (16:58 +0100)]
mov: Remove old b-frame/video delay heuristic

This was added before edts support existed, and is no longer
valid.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2 years agomov: Remove ancient heuristic hack
Derek Buitenhuis [Thu, 25 Aug 2016 15:58:14 +0000 (16:58 +0100)]
mov: Remove ancient heuristic hack

This breaks files with legitimate single-entry edit lists,
and the hack, introduced in f03a081df09f9c4798a17d7e24446ed47924b11b,
has no link to any known sample in its commit message.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2 years agotests/audiomatch: Fix compile warning
Steven Liu [Thu, 25 Aug 2016 12:40:17 +0000 (05:40 -0700)]
tests/audiomatch: Fix compile warning

Making sure bestpos is initialized to zero to prevent gcc from kvetching.
It's harmless (although it's not obvious that it's harmless)
from code inspection:
tests/audiomatch.c: In function ‘main’:
tests/audiomatch.c:40: warning: ‘bestpos’ may be used uninitialized in this function

Thanks to Moritz Barsnick for first bringing this to the attention.

Signed-off-by: LiuQi <liuqi@gosun.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/af_acrusher: Rename sun/sov
Michael Niedermayer [Thu, 25 Aug 2016 10:33:08 +0000 (12:33 +0200)]
avfilter/af_acrusher: Rename sun/sov

The names are hard to understand and also seem to break build on at least some solaris
versions

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter: add yuvtestsrc source filter
Paul B Mahol [Wed, 24 Aug 2016 16:55:05 +0000 (18:55 +0200)]
avfilter: add yuvtestsrc source filter

2 years agoavfilter: add lut2 filter
Paul B Mahol [Wed, 24 Aug 2016 08:36:31 +0000 (10:36 +0200)]
avfilter: add lut2 filter

2 years agoavcodec/exr: Check tile positions
Michael Niedermayer [Wed, 17 Aug 2016 19:22:29 +0000 (21:22 +0200)]
avcodec/exr: Check tile positions

This also disabled the case of mixed x/ymin with tiles, the code
handles these cases inconsistent for the 2 coordinate axis and is
unlikely working correctly.

Fixes crash
Fixes: poc1.exr, poc2.exr

Found-by: Yaoguang Chen of Aliapy unLimit Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoaf_hdcd: check return value of av_frame_copy_props()
Burt P [Mon, 22 Aug 2016 22:14:49 +0000 (17:14 -0500)]
af_hdcd: check return value of av_frame_copy_props()

Anton Khirnov:
"[av_frame_copy_props()] potentially contains memory allocation,
so the return value needs to be checked."

Signed-off-by: Burt P <pburt0@gmail.com>