ffmpeg.git
2 years agodoc/filters: re-order hdcd options to match --help filter=hdcd
Burt P [Mon, 22 Aug 2016 09:37:54 +0000 (04:37 -0500)]
doc/filters: re-order hdcd options to match --help filter=hdcd

Signed-off-by: Burt P <pburt0@gmail.com>
2 years agolibavcodec/dnxhdenc: fix typo, check if profile is dnxhr 444 or hqx
Mark Reid [Mon, 22 Aug 2016 00:07:49 +0000 (17:07 -0700)]
libavcodec/dnxhdenc: fix typo, check if profile is dnxhr 444 or hqx

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/swfdec: Fix memleak on error
Michael Niedermayer [Sun, 21 Aug 2016 23:01:44 +0000 (01:01 +0200)]
avformat/swfdec: Fix memleak on error

Fixes: 9eb9cf5b8c26dd0fa7107ed0348dcc1f/signal_sigabrt_7ffff6ae7c37_8925_1f676b5229d009f2b56dfd9e149fa6ba.swf

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agomem: Extend and edit Doxygen
Timothy Gu [Sat, 30 Jul 2016 00:39:02 +0000 (17:39 -0700)]
mem: Extend and edit Doxygen

2 years agoavformat/wtvdec: Check pointer before use
Michael Niedermayer [Sun, 21 Aug 2016 19:30:36 +0000 (21:30 +0200)]
avformat/wtvdec: Check pointer before use

Fixes out of array read
Fixes: 049fdf78565f1ce5665df236d90f8657/asan_heap-oob_10a5a97_1026_42f9d4855547329560f385768de2f3fb.wtv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agolibavcodec/wmalosslessdec: Check the remaining bits
Michael Niedermayer [Sun, 21 Aug 2016 18:30:34 +0000 (20:30 +0200)]
libavcodec/wmalosslessdec: Check the remaining bits

Fixes assertion failure
Fixes: 24ebfda03228b5cc1ef792608cfba458/signal_sigabrt_7ffff6ae7c37_6473_3fa8a111dbc752b1a7c411c5ab79aaa4.wma

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agodoc/filters: update for af_hdcd
Burt P [Sun, 21 Aug 2016 18:44:17 +0000 (13:44 -0500)]
doc/filters: update for af_hdcd

Signed-off-by: Burt P <pburt0@gmail.com>
2 years agoaf_hdcd: PE table limits
Burt P [Sun, 21 Aug 2016 18:38:47 +0000 (13:38 -0500)]
af_hdcd: PE table limits

Signed-off-by: Burt P <pburt0@gmail.com>
2 years agoaf_hdcd: add AVOption to disable autoconversion in the filter graph
Burt P [Wed, 10 Aug 2016 16:35:30 +0000 (11:35 -0500)]
af_hdcd: add AVOption to disable autoconversion in the filter graph

Signed-off-by: Burt P <pburt0@gmail.com>
2 years agoaf_hdcd: add AVOption to set the CDT period
Burt P [Wed, 10 Aug 2016 06:18:18 +0000 (01:18 -0500)]
af_hdcd: add AVOption to set the CDT period

Signed-off-by: Burt P <pburt0@gmail.com>
2 years agoaf_hdcd: Code comments update
Burt P [Sun, 21 Aug 2016 18:00:22 +0000 (13:00 -0500)]
af_hdcd: Code comments update

Signed-off-by: Burt P <pburt0@gmail.com>
2 years agoavfilter/avf_showvolume: calculate color table only once
Paul B Mahol [Sun, 21 Aug 2016 14:46:21 +0000 (16:46 +0200)]
avfilter/avf_showvolume: calculate color table only once

2 years agolavf/hlsenc: add append_list flag into hlsenc
Steven Liu [Sun, 21 Aug 2016 04:55:45 +0000 (12:55 +0800)]
lavf/hlsenc: add append_list flag into hlsenc

When ffmpeg exit by exception, start a new ffmpeg will
cover the old segment list, add this flag can continue
append the new segments into old hls segment list

Signed-off-by: LiuQi <liuqi@gosun.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/bsf: Add custom item name function for bsf list
Jan Sebechlebsky [Sun, 21 Aug 2016 08:36:12 +0000 (10:36 +0200)]
avcodec/bsf: Add custom item name function for bsf list

which will
construct string description of filter chain. This is
done using lazy-initialization, so there is no overhead
if item name is never accessed.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/vf_crop: make possible to do exact cropping for subsampled videos
Paul B Mahol [Sat, 20 Aug 2016 22:01:57 +0000 (00:01 +0200)]
avfilter/vf_crop: make possible to do exact cropping for subsampled videos

2 years agolibavformat/mov: Accept known codepoints in 'colr'
Steven Robertson [Wed, 17 Aug 2016 07:25:47 +0000 (00:25 -0700)]
libavformat/mov: Accept known codepoints in 'colr'

This change relaxes the whitelist on reading color metadata in MOV/BMFF
containers. The whitelist on writing values is still in place.

As a consequence it also fixes an apparent bug in reading 'nclc' values.
The 'nclc' spec [1] is in harmony with ISO 23001-8 for the values it
lists, but the code getting removed was remapping 5->6 and 6->7 for
primaries, which is incorrect, and was remapping 6->5 for color matrix
("colorspace" in the code), which is equivalent but an unnecessary
inconsistency. This logic error doesn't appear in movenc.

Removing the whitelist allows proper conversion when the source codec
relies on the container for proper signaling of newer codepoints, such
as DNxHR and VP9. If converting to a codec or container that has updated
its spec to include the new codepoints, the metadata will be preserved.
If going back to MOV/BMFF, the output whitelist will still kick in, so
this won't result in out-of-spec files being created.

[1] https://developer.apple.com/library/mac/technotes/tn2162/_index.html

Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agofate: add DNxHR 12-bit example.
Steven Robertson [Wed, 17 Aug 2016 05:22:54 +0000 (22:22 -0700)]
fate: add DNxHR 12-bit example.

Signed-off-by: Steven Robertson <steven@strobe.cc>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/adpcm: Fix adpcm_ima_wav padding
Michael Niedermayer [Sat, 20 Aug 2016 23:42:20 +0000 (01:42 +0200)]
avcodec/adpcm: Fix adpcm_ima_wav padding

Fixes out of array read
Fixes: f29f134ea5f5590df554a7733294a587/asan_stack-oob_309d14e_9188_ea01743d6355aff20530f3d4cdaa841a.wav

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/svq3: fix slice size check
Michael Niedermayer [Sat, 20 Aug 2016 20:09:54 +0000 (22:09 +0200)]
avcodec/svq3: fix slice size check

Fixes out of array read
Fixes: 09f46aa2175cade93e3e3932646a56a9/asan_heap-oob_4a5385_2995_498f6abfdc0248288cefe5f4b7ad316c.mov

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/mov: Check STSD atom more completely
Michael Niedermayer [Sat, 20 Aug 2016 18:15:29 +0000 (20:15 +0200)]
avformat/mov: Check STSD atom more completely

Fixes out of array read
Fixes: 13262c363a28da8d6bdcc472aed6e9dc/asan_heap-oob_cfb5e2_3733_31cf3fcc783295c34222eb070a784f84.3gp

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/diracdec: Check numx/y
Michael Niedermayer [Sat, 20 Aug 2016 17:21:07 +0000 (19:21 +0200)]
avcodec/diracdec: Check numx/y

Fixes division by 0
Fixes: 60261c4469ba3e11059890fb2832a515/asan_generic_135e694_2790_beb94eaa0aeb7d11c0437375a8964a99.drc

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/window_func: use a constant instead of acosh()
James Almer [Sat, 20 Aug 2016 04:03:00 +0000 (01:03 -0300)]
avfilter/window_func: use a constant instead of acosh()

Should fix compilation with non C99 compilers like msvc 2012, where
acosh() is not available.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years agoavdevice/dshow: satisfy alloc contract better
Roger Pack [Tue, 16 Aug 2016 13:42:29 +0000 (07:42 -0600)]
avdevice/dshow: satisfy alloc contract better

prevent non-rgb24 crashes on windows 10 anniversary ed

Signed-off-by: Roger Pack <rogerpack2005@gmail.com>
2 years agox86/avf_showcqt: use the FMULADD_PS x86util macro
James Almer [Sat, 20 Aug 2016 05:12:33 +0000 (02:12 -0300)]
x86/avf_showcqt: use the FMULADD_PS x86util macro

Signed-off-by: James Almer <jamrial@gmail.com>
2 years agoavcodec/h2645_parse: fix nal size
Michael Niedermayer [Fri, 19 Aug 2016 21:54:28 +0000 (23:54 +0200)]
avcodec/h2645_parse: fix nal size

Found-by: <durandal_1707>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/h2645_parse: Use get_nalsize() in ff_h2645_packet_split()
Michael Niedermayer [Fri, 19 Aug 2016 22:39:07 +0000 (00:39 +0200)]
avcodec/h2645_parse: Use get_nalsize() in ff_h2645_packet_split()

This fixes several regressions in h.264

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/h264_parser: Factor get_avc_nalsize() out
Michael Niedermayer [Fri, 19 Aug 2016 22:36:38 +0000 (00:36 +0200)]
avcodec/h264_parser: Factor get_avc_nalsize() out

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/cfhd: Increase minimum band dimension to 3
Michael Niedermayer [Fri, 19 Aug 2016 19:34:38 +0000 (21:34 +0200)]
avcodec/cfhd: Increase minimum band dimension to 3

The implementation does not currently support len=2

Fixes out of array accesses
Fixes: 29d1b3db5ba2205e82b0b3a533e057a3/asan_heap-oob_12b650c_9254_3b8c4e4d931eb2c32841c18ebb297f1d.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/vf_histogram: make foreground and background opacity configurable
Paul B Mahol [Fri, 19 Aug 2016 15:55:02 +0000 (17:55 +0200)]
avfilter/vf_histogram: make foreground and background opacity configurable

2 years agoavformat/movenc: Free extradata after successfull allocation of new instead of before
Michael Niedermayer [Fri, 19 Aug 2016 13:58:53 +0000 (15:58 +0200)]
avformat/movenc: Free extradata after successfull allocation of new instead of before

This avoids erroring out with extradata lost and extradata size mismatching

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/movenc: allow rewriting extradata
Umair Khan [Wed, 17 Aug 2016 18:57:42 +0000 (00:27 +0530)]
avformat/movenc: allow rewriting extradata

Signed-off-by: Umair Khan <omerjerk@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/indeo2: check ctab
Michael Niedermayer [Fri, 19 Aug 2016 11:07:14 +0000 (13:07 +0200)]
avcodec/indeo2: check ctab

Fixes out of array access
Fixes: 6b73fa392ac808f02e95a4e0a5770026/asan_static-oob_1b15f9a_1969_e7778535e5f27225fe0d6ded14721430.AVI

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/swfdec: Fix inflate() error code check
Michael Niedermayer [Fri, 19 Aug 2016 08:28:22 +0000 (10:28 +0200)]
avformat/swfdec: Fix inflate() error code check

Fixes infinite loop
Fixes endless.poc

Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/swfdec: Move packet size check before side data allocation
Michael Niedermayer [Fri, 19 Aug 2016 01:04:57 +0000 (03:04 +0200)]
avformat/swfdec: Move packet size check before side data allocation

Fixes memleak
Fixes: 9eb9cf5b8c26dd0fa7107ed0348dcc1f/signal_sigabrt_7ffff6ae7c37_8927_f14c2a6ae1ad0bbde2c94f1da50e7074.swf

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/rawdec: Fix bits_per_coded_sample checks
Michael Niedermayer [Fri, 19 Aug 2016 00:07:22 +0000 (02:07 +0200)]
avcodec/rawdec: Fix bits_per_coded_sample checks

Fixes assertion failure
Fixes: 9eb9cf5b8c26dd0fa7107ed0348dcc1f/signal_sigabrt_7ffff6ae7c37_8926_4609a5c3f071d555d2d557625f9687b1.swf

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agovcodec/h2645_parse: Clear buffer padding
Michael Niedermayer [Thu, 18 Aug 2016 20:23:32 +0000 (22:23 +0200)]
vcodec/h2645_parse: Clear buffer padding

Fixes use of uninitialized memory
Fixes: 044100cb22845944988a4bd821ff8074/asan_heap-oob_329927a_1366_c3de34ce9217dac820fbb46171031bbb.jsv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/h2645: Fix NAL unit padding
Michael Niedermayer [Thu, 18 Aug 2016 18:41:31 +0000 (20:41 +0200)]
avcodec/h2645: Fix NAL unit padding

The parser changes have lost the support for the needed padding, this adds it back
Fixes out of array reads
Fixes: 03ea21d271abc8acf428d42ace51d8b4/asan_heap-oob_3358eef_5692_16f0cc01ab5225e9ce591659e5c20e35.mkv

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/avf_showvolume: use current peak value for picking colors
Paul B Mahol [Thu, 18 Aug 2016 18:14:58 +0000 (20:14 +0200)]
avfilter/avf_showvolume: use current peak value for picking colors

2 years agoavfilter/avf_showspectrum: do not use uninitialized memory
Paul B Mahol [Thu, 18 Aug 2016 16:40:00 +0000 (18:40 +0200)]
avfilter/avf_showspectrum: do not use uninitialized memory

2 years agoavfilter/af_astats: fix flt(p) support
Paul B Mahol [Thu, 18 Aug 2016 09:03:57 +0000 (11:03 +0200)]
avfilter/af_astats: fix flt(p) support

2 years agoavfilter/af_astats: add support for s64(p) sample format
Paul B Mahol [Thu, 18 Aug 2016 09:02:31 +0000 (11:02 +0200)]
avfilter/af_astats: add support for s64(p) sample format

2 years agoavcodec: add 64-bit signed pcm codec
Paul B Mahol [Wed, 17 Aug 2016 17:46:21 +0000 (19:46 +0200)]
avcodec: add 64-bit signed pcm codec

2 years agoswresample: add int64 sample format
Paul B Mahol [Wed, 17 Aug 2016 17:08:43 +0000 (19:08 +0200)]
swresample: add int64 sample format

2 years agoswresample: Skip over dither steps if dithering scale is 0
Michael Niedermayer [Thu, 18 Aug 2016 09:52:11 +0000 (11:52 +0200)]
swresample: Skip over dither steps if dithering scale is 0

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoswresample: move dither init up
Michael Niedermayer [Thu, 18 Aug 2016 09:44:42 +0000 (11:44 +0200)]
swresample: move dither init up

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agolavf/pcmdec: Try to fix msvc compilation after 4c42d306.
Carl Eugen Hoyos [Thu, 18 Aug 2016 07:45:25 +0000 (09:45 +0200)]
lavf/pcmdec: Try to fix msvc compilation after 4c42d306.

2 years agoexamples/demuxing_decoding: convert to codecpar
James Almer [Wed, 10 Aug 2016 15:31:16 +0000 (12:31 -0300)]
examples/demuxing_decoding: convert to codecpar

Signed-off-by: James Almer <jamrial@gmail.com>
2 years agoavformat: factorize iso 8601 timestamp writer to a dictionary avutil function
Marton Balint [Wed, 29 Jun 2016 20:44:59 +0000 (22:44 +0200)]
avformat: factorize iso 8601 timestamp writer to a dictionary avutil function

Signed-off-by: Marton Balint <cus@passwd.hu>
2 years agolavc/rscc: Fix colourspace for codec_tag RSCC and 32bpp.
Carl Eugen Hoyos [Wed, 17 Aug 2016 20:02:30 +0000 (22:02 +0200)]
lavc/rscc: Fix colourspace for codec_tag RSCC and 32bpp.

2 years agoavfilter/avf_showfreqs: make minimum amplitude for log scaler configurable
Paul B Mahol [Wed, 17 Aug 2016 19:56:42 +0000 (21:56 +0200)]
avfilter/avf_showfreqs: make minimum amplitude for log scaler configurable

2 years agoavfilter/avf_showspectrum: unbreak dB legend
Paul B Mahol [Wed, 17 Aug 2016 19:55:23 +0000 (21:55 +0200)]
avfilter/avf_showspectrum: unbreak dB legend

2 years agocompat/avisynth: update AviSynth+ header
Stephen Hutchinson [Mon, 15 Aug 2016 16:37:30 +0000 (12:37 -0400)]
compat/avisynth: update AviSynth+ header

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoffmpeg: Do not set too large bits_per_raw_sample.
Carl Eugen Hoyos [Tue, 5 Jul 2016 09:50:00 +0000 (11:50 +0200)]
ffmpeg: Do not set too large bits_per_raw_sample.

2 years agolavf/pcmdec: Map mime_type audio/L16 to the s16le demuxer.
Carl Eugen Hoyos [Wed, 17 Aug 2016 16:07:24 +0000 (18:07 +0200)]
lavf/pcmdec: Map mime_type audio/L16 to the s16le demuxer.

Implements RFC 2586.

2 years agolavf/version: fix belive/believe typo
Clément Bœsch [Wed, 17 Aug 2016 14:33:14 +0000 (16:33 +0200)]
lavf/version: fix belive/believe typo

2 years agolavf: mark stream as const pointer in av_stream_get_side_data() for next bump
Clément Bœsch [Mon, 27 Jun 2016 09:28:12 +0000 (11:28 +0200)]
lavf: mark stream as const pointer in av_stream_get_side_data() for next bump

2 years agolavf/utils: add some const to pointers parameters in a few functions
Clément Bœsch [Mon, 27 Jun 2016 09:25:23 +0000 (11:25 +0200)]
lavf/utils: add some const to pointers parameters in a few functions

2 years agodoc: add Libav merge document
Clément Bœsch [Thu, 23 Jun 2016 14:25:24 +0000 (16:25 +0200)]
doc: add Libav merge document

2 years agoavfilter/Makefile & allfilters: sort entries
Paul B Mahol [Wed, 17 Aug 2016 11:37:39 +0000 (13:37 +0200)]
avfilter/Makefile & allfilters: sort entries

2 years agoavfilter: add bitplanenoise filter
Paul B Mahol [Sun, 14 Aug 2016 16:10:55 +0000 (18:10 +0200)]
avfilter: add bitplanenoise filter

2 years agodoc/APIChanges: fill in missing git hashes
James Almer [Wed, 17 Aug 2016 02:23:50 +0000 (23:23 -0300)]
doc/APIChanges: fill in missing git hashes

Signed-off-by: James Almer <jamrial@gmail.com>
2 years agodoc/APIchanges: Document addition of list BSF API in lavc
Jan Sebechlebsky [Tue, 16 Aug 2016 20:14:50 +0000 (22:14 +0200)]
doc/APIchanges: Document addition of list BSF API in lavc

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2 years agofate: Add RGB48 FFV1 test
Michael Niedermayer [Tue, 16 Aug 2016 21:06:19 +0000 (23:06 +0200)]
fate: Add RGB48 FFV1 test

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/ffv1enc: Add RGB48 support
Michael Niedermayer [Tue, 16 Aug 2016 21:06:02 +0000 (23:06 +0200)]
avcodec/ffv1enc: Add RGB48 support

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/ffv1enc: do not offset null pointers
Michael Niedermayer [Tue, 16 Aug 2016 21:05:27 +0000 (23:05 +0200)]
avcodec/ffv1enc: do not offset null pointers

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/ffv1: Fix rgb plane ordering in experimental planar RGB
Michael Niedermayer [Tue, 16 Aug 2016 21:04:00 +0000 (23:04 +0200)]
avcodec/ffv1: Fix rgb plane ordering in experimental planar RGB

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/ffv1enc: Factor rice high depth check out
Michael Niedermayer [Tue, 16 Aug 2016 21:03:10 +0000 (23:03 +0200)]
avcodec/ffv1enc: Factor rice high depth check out

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavformat/mov: Check extradata before access
Michael Niedermayer [Tue, 16 Aug 2016 16:07:11 +0000 (18:07 +0200)]
avformat/mov: Check extradata before access

Fixes NULL ptr dereference
Fixes Ticket5778

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/window_func: add cauchy, parzen and poisson window function
Paul B Mahol [Tue, 16 Aug 2016 16:03:56 +0000 (18:03 +0200)]
avfilter/window_func: add cauchy, parzen and poisson window function

2 years agoffmpeg/qsv: fix QSV-accelerated transcode performance drop issue.
Jun Zhao [Thu, 11 Aug 2016 07:34:01 +0000 (15:34 +0800)]
ffmpeg/qsv: fix QSV-accelerated transcode performance drop issue.

the merge commit 1b04ea1 "avconv: create simple filtergraphs earlier"
will init the filtergraphs earlier, then init the QSV transcode can't
suppose the nb_filters's value, else lead to the QSV transcode performance
drop.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Reviewed-by: Ivan Uskov <ivan.uskov@nablet.com
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/vaf_spectrumsynth: check return code
Paul B Mahol [Tue, 16 Aug 2016 14:01:35 +0000 (16:01 +0200)]
avfilter/vaf_spectrumsynth: check return code

2 years agoavfilter/avf_showspectrum: do not let multiple threads to write to same part of memory
Paul B Mahol [Tue, 16 Aug 2016 13:52:30 +0000 (15:52 +0200)]
avfilter/avf_showspectrum: do not let multiple threads to write to same part of memory

2 years agoavfilter/window_func: add dolph window
Paul B Mahol [Tue, 16 Aug 2016 12:30:43 +0000 (14:30 +0200)]
avfilter/window_func: add dolph window

2 years agolavc: add trailing_padding to AVCodecContext to match AVCodecParameters.
Jon Toohill [Mon, 15 Aug 2016 20:13:06 +0000 (13:13 -0700)]
lavc: add trailing_padding to AVCodecContext to match AVCodecParameters.

Shows encoder delay/padding in the stream summary if they are set.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/vf_atadenoise: set default size value to 9
Paul B Mahol [Mon, 15 Aug 2016 21:04:08 +0000 (23:04 +0200)]
avfilter/vf_atadenoise: set default size value to 9

This is enough, bigger sizes do not produce better output in 99% cases.

2 years agoavfilter/vf_atadenoise: add support for more pixel formats
Paul B Mahol [Mon, 15 Aug 2016 21:00:28 +0000 (23:00 +0200)]
avfilter/vf_atadenoise: add support for more pixel formats

2 years agoavfilter/af_astats: add support for other sample formats
Paul B Mahol [Mon, 15 Aug 2016 20:01:16 +0000 (22:01 +0200)]
avfilter/af_astats: add support for other sample formats

2 years agoavcodec/bsf: Add list BSF API
Jan Sebechlebsky [Mon, 15 Aug 2016 10:38:35 +0000 (12:38 +0200)]
avcodec/bsf: Add list BSF API

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/iff: remove palette swapping for anim
Paul B Mahol [Mon, 15 Aug 2016 11:21:47 +0000 (13:21 +0200)]
avcodec/iff: remove palette swapping for anim

It appears it is wrong.

2 years agoavfilter/avf_showspectrum: add some multithreading support
Paul B Mahol [Mon, 15 Aug 2016 09:53:56 +0000 (11:53 +0200)]
avfilter/avf_showspectrum: add some multithreading support

2 years agodoc/filters: add yet another zoompan usage example
Paul B Mahol [Mon, 15 Aug 2016 07:59:40 +0000 (09:59 +0200)]
doc/filters: add yet another zoompan usage example

2 years agoavfilter/vf_zoompan: fix pzoom usage
Paul B Mahol [Mon, 15 Aug 2016 07:31:09 +0000 (09:31 +0200)]
avfilter/vf_zoompan: fix pzoom usage

2 years agolibavcodec/qsvdec_h2645.c: switch to the new BSF API
Ivan Uskov [Sun, 24 Jul 2016 18:04:36 +0000 (14:04 -0400)]
libavcodec/qsvdec_h2645.c: switch to the new BSF API

This patch applies same changes as commit e3dfef8e3c85a64dbe6388117303f5819fa3c6a2 of libav:
instead of the obsolete AVBitStreamFilterContext now the new AVBSFContext filter is used to
restore annex-B prefixes.

Based-on: e3dfef8e3c85a64dbe6388117303f5819fa3c6a2 by Anton Khirnov
Push requested by maintainer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoconfigure: All sun4 machines are SPARCs, not just sun4u
Maya Rashish [Sun, 14 Aug 2016 18:23:40 +0000 (18:23 +0000)]
configure: All sun4 machines are SPARCs, not just sun4u

Allow building on sun4v

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agolibavformat/http: add support for content_type option in listen mode
Moritz Barsnick [Wed, 10 Aug 2016 19:18:00 +0000 (21:18 +0200)]
libavformat/http: add support for content_type option in listen mode

Instead of silently ignoring the content_type option in listen mode,
apply its value to the provided "Content-Type:" header.

Signed-off-by: Moritz Barsnick <barsnick@gmx.net>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavfilter/vf_signalstats: fix saturation calculation for >8 bit
Paul B Mahol [Sun, 14 Aug 2016 08:00:35 +0000 (10:00 +0200)]
avfilter/vf_signalstats: fix saturation calculation for >8 bit

2 years agoaacenc: fix various typos and an error message
Rostislav Pehlivanov [Sat, 13 Aug 2016 16:34:58 +0000 (17:34 +0100)]
aacenc: fix various typos and an error message

Too much copy and pasting.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2 years agoaacenc: unmark the fast coder as experimental
Rostislav Pehlivanov [Sat, 6 Aug 2016 23:49:34 +0000 (00:49 +0100)]
aacenc: unmark the fast coder as experimental

This version has had much testing so there's little point in keeping it
maked as experimental.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2 years agoaacenc: add a faster version of twoloop as the "fast" coder
Rostislav Pehlivanov [Sat, 6 Aug 2016 23:47:31 +0000 (00:47 +0100)]
aacenc: add a faster version of twoloop as the "fast" coder

Does nothing fancy but still sounds very decent at 128kbps.
Still room to improve by bringing in the low pass and PNS management
from the main big twoloop which should improve its quality but not
sacrifice that much speed.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
2 years agoavfilter/vf_signalstats: measure video bitdepth
Paul B Mahol [Thu, 11 Aug 2016 16:10:46 +0000 (18:10 +0200)]
avfilter/vf_signalstats: measure video bitdepth

2 years agoavfilter/vf_signalstats: add >8 bit depth support
Paul B Mahol [Thu, 28 Jul 2016 12:20:01 +0000 (14:20 +0200)]
avfilter/vf_signalstats: add >8 bit depth support

2 years agoavcodec/bsf: Add ff_bsf_get_packet_ref() function
Jan Sebechlebsky [Thu, 28 Jul 2016 16:18:13 +0000 (18:18 +0200)]
avcodec/bsf: Add ff_bsf_get_packet_ref() function

Use of this function can save unnecessary malloc operation
in bitstream filter.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoconfigure: Check for arc4random() header definition.
Carl Eugen Hoyos [Sat, 13 Aug 2016 00:22:16 +0000 (02:22 +0200)]
configure: Check for arc4random() header definition.

Fixes Cygwin compilation.

2 years agodoc/bsfs: Fix bsf options divider in documentation
Jan Sebechlebsky [Thu, 28 Jul 2016 16:18:12 +0000 (18:18 +0200)]
doc/bsfs: Fix bsf options divider in documentation

The actual implementation uses ':' divider, not '/' as
documented.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/bsf: Forbid packet without payload in av_bsf_send_packet
Jan Sebechlebsky [Tue, 26 Jul 2016 10:40:08 +0000 (12:40 +0200)]
avcodec/bsf: Forbid packet without payload in av_bsf_send_packet

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agoavcodec/bsf: Set EOF flag only in pkt == NULL
Jan Sebechlebsky [Tue, 26 Jul 2016 10:40:07 +0000 (12:40 +0200)]
avcodec/bsf: Set EOF flag only in pkt == NULL

Set BSF EOF flag only if pkt == NULL in av_bsf_send_packet().

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agolavc/raw: Support QT b64a ARGB64 rawvideo.
Carl Eugen Hoyos [Fri, 12 Aug 2016 23:44:52 +0000 (01:44 +0200)]
lavc/raw: Support QT b64a ARGB64 rawvideo.

Decoder based on a patch by v0lt, v0lt rambler ru
Fixes ticket #5657.

2 years agolavc/screenpresso: Fix 32bit pix_fmt, there is no transparency.
Carl Eugen Hoyos [Fri, 12 Aug 2016 23:35:10 +0000 (01:35 +0200)]
lavc/screenpresso: Fix 32bit pix_fmt, there is no transparency.

Fixes a remaining issue of ticket #5025.

2 years agofate: add test for compand filter
Petru Rares Sincraian [Fri, 12 Aug 2016 17:00:09 +0000 (19:00 +0200)]
fate: add test for compand filter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2 years agotests/fate/vcodec: add dnxhr edge tests
Mark Reid [Sun, 7 Aug 2016 23:15:28 +0000 (16:15 -0700)]
tests/fate/vcodec: add dnxhr edge tests

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>