]> git.sesse.net Git - ffmpeg/log
ffmpeg
8 years agoavutil/parseutils: remove 2112 date from fate test
Marton Balint [Sun, 14 Feb 2016 12:33:14 +0000 (13:33 +0100)]
avutil/parseutils: remove 2112 date from fate test

It is not supported on 32bit.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agox86/vc1dsp: Port vc1_*_hor_16b_shift2 to NASM format
Timothy Gu [Sun, 14 Feb 2016 04:22:48 +0000 (04:22 +0000)]
x86/vc1dsp: Port vc1_*_hor_16b_shift2 to NASM format

Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com>
8 years agocheckasm/vf_blend: Decrease iteration count
Timothy Gu [Sun, 14 Feb 2016 18:48:24 +0000 (10:48 -0800)]
checkasm/vf_blend: Decrease iteration count

The test is already slow.

8 years agocheckasm: Add vf_blend tests
Timothy Gu [Wed, 10 Feb 2016 09:07:40 +0000 (09:07 +0000)]
checkasm: Add vf_blend tests

8 years agovf_blend: Move C dsp function mapping to separate function
Timothy Gu [Wed, 10 Feb 2016 09:05:30 +0000 (09:05 +0000)]
vf_blend: Move C dsp function mapping to separate function

8 years agolibavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats
Mark Reid [Sun, 14 Feb 2016 05:44:32 +0000 (21:44 -0800)]
libavcodec/dnxhd_parser: add parser and probe support raw 444 and dnxhr formats

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agocompat/os2threads: split long lines
KO Myung-Hun [Sun, 14 Feb 2016 15:20:35 +0000 (00:20 +0900)]
compat/os2threads: split long lines

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agocompat/os2threads: support the return value of joined thread
KO Myung-Hun [Sun, 14 Feb 2016 15:20:34 +0000 (00:20 +0900)]
compat/os2threads: support the return value of joined thread

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agocompat/os2threads: Improve pthread_cond_xxx() functions
KO Myung-Hun [Sun, 14 Feb 2016 15:20:33 +0000 (00:20 +0900)]
compat/os2threads: Improve pthread_cond_xxx() functions

1. Manipulate waiting count in pthread_cond_wait()
2. Use builtin atomic functions to manipulate waiting count

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_tinterlace: fix image alignment
Michael Niedermayer [Sun, 14 Feb 2016 14:51:10 +0000 (15:51 +0100)]
avfilter/vf_tinterlace: fix image alignment

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovf_blend: Use integers for divide mode
Timothy Gu [Sun, 14 Feb 2016 02:15:18 +0000 (02:15 +0000)]
vf_blend: Use integers for divide mode

2.5x faster for 8-bit mode without autovectorization in GCC, 2x
slower with it on x86. However, since the platforms we enable GCC
autovectorization on most probably has support for SSE2
optimization (added in the subsequent commit), this commit should
in general do good.

8 years agolavf/spdifenc: Support MLP encapsulation.
David Monro [Sun, 14 Feb 2016 17:02:22 +0000 (18:02 +0100)]
lavf/spdifenc: Support MLP encapsulation.

Fixes bug 821.

Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
8 years agovf_blend: Reduce number of arguments for kernel function
Timothy Gu [Sun, 14 Feb 2016 02:01:35 +0000 (02:01 +0000)]
vf_blend: Reduce number of arguments for kernel function

8 years agovf_blend: Use memcpy when opacity is 0
Timothy Gu [Sat, 13 Feb 2016 23:42:45 +0000 (23:42 +0000)]
vf_blend: Use memcpy when opacity is 0

For xor mode, 1.8x faster on Haswell.

8 years agovf_blend: Templatize identity function and use a better name
Timothy Gu [Sat, 13 Feb 2016 23:23:17 +0000 (23:23 +0000)]
vf_blend: Templatize identity function and use a better name

8 years agoavcodec: Fix a typo.
Carl Eugen Hoyos [Sun, 14 Feb 2016 15:14:08 +0000 (16:14 +0100)]
avcodec: Fix a typo.

8 years agoMAINTAINERS: Add myself as libutvideo maintainer.
Carl Eugen Hoyos [Sun, 14 Feb 2016 14:51:38 +0000 (15:51 +0100)]
MAINTAINERS: Add myself as libutvideo maintainer.

8 years agoavfilter/f_metadata: remove unused headers
Paul B Mahol [Sun, 14 Feb 2016 14:21:36 +0000 (15:21 +0100)]
avfilter/f_metadata: remove unused headers

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavf/mpjpeg: do not include CRLF preceding boundary as part of the returned frame
Alex Agranovsky [Sun, 14 Feb 2016 04:16:45 +0000 (23:16 -0500)]
lavf/mpjpeg: do not include CRLF preceding boundary as part of the returned frame

Signed-off-by: Alex Agranovsky <alex@sighthound.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec: only warn about hwaccel with frame threads
Andreas Cadhalpun [Sat, 23 Jan 2016 09:12:30 +0000 (10:12 +0100)]
avcodec: only warn about hwaccel with frame threads

VLC uses hwaccel with frame threads and it works fine, but returning
an error here made it fail.

This regression was introduced in commit 31741ae.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Warning message text by nevcairiel

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavf/mpjpeg: Trim quotes on MIME boundary, if present.
Alex Agranovsky [Fri, 12 Feb 2016 17:59:29 +0000 (12:59 -0500)]
lavf/mpjpeg: Trim quotes on MIME boundary, if present.

Fixes 5023

Signed-off-by: Alex Agranovsky <alex@sighthound.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/utils: remove ff_iso8601_to_unix_time
Marton Balint [Sat, 6 Feb 2016 17:02:11 +0000 (18:02 +0100)]
avformat/utils: remove ff_iso8601_to_unix_time

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/matroskaenc: use ff_parse_creation_time_metadata
Marton Balint [Sat, 6 Feb 2016 17:01:23 +0000 (18:01 +0100)]
avformat/matroskaenc: use ff_parse_creation_time_metadata

Also increase precision to microsecs, and avoid writing creation_time as a
simple tag metadata item.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/mxfenc: use ff_parse_creation_time_metadata
Marton Balint [Sat, 6 Feb 2016 17:00:53 +0000 (18:00 +0100)]
avformat/mxfenc: use ff_parse_creation_time_metadata

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/movenc: use ff_parse_creation_time_metadata
Marton Balint [Sat, 6 Feb 2016 17:00:45 +0000 (18:00 +0100)]
avformat/movenc: use ff_parse_creation_time_metadata

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/gxfenc: use ff_parse_creation_time_metadata
Marton Balint [Sat, 6 Feb 2016 16:58:48 +0000 (17:58 +0100)]
avformat/gxfenc: use ff_parse_creation_time_metadata

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/ffmenc: use ff_parse_creation_time_metadata
Marton Balint [Sat, 6 Feb 2016 16:58:01 +0000 (17:58 +0100)]
avformat/ffmenc: use ff_parse_creation_time_metadata

FYI this muxer bails out on parse error and not just warn the user.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/dvenc: use ff_parse_creation_time_metadata
Marton Balint [Sat, 6 Feb 2016 16:57:21 +0000 (17:57 +0100)]
avformat/dvenc: use ff_parse_creation_time_metadata

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/asfenc: use ff_parse_creation_time_metadata
Marton Balint [Sat, 6 Feb 2016 16:56:31 +0000 (17:56 +0100)]
avformat/asfenc: use ff_parse_creation_time_metadata

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/utils: add ff_parse_creation_time_metadata
Marton Balint [Thu, 4 Feb 2016 02:28:19 +0000 (03:28 +0100)]
avformat/utils: add ff_parse_creation_time_metadata

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavutil/parseutils: accept everything in av_parse_time that ff_iso8601_to_unix_time...
Marton Balint [Thu, 4 Feb 2016 01:50:42 +0000 (02:50 +0100)]
avutil/parseutils: accept everything in av_parse_time that ff_iso8601_to_unix_time accepts

Also parse timezone information previously ignored in ff_iso8601_to_unix_time.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavutil/parseutils: use microsecond precision when parsing "now" in av_parse_time()
Marton Balint [Thu, 4 Feb 2016 01:09:48 +0000 (02:09 +0100)]
avutil/parseutils: use microsecond precision when parsing "now" in av_parse_time()

Use av_gettime() instead of time(0) for querying current time.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/img2enc: disable atomic file creation by default
Marton Balint [Thu, 11 Feb 2016 01:01:29 +0000 (02:01 +0100)]
avformat/img2enc: disable atomic file creation by default

Currently it is broken when explicitly using the file protocol, it uses an
insecure temporary file name, and in commit b4431c80 disabling the option by
default was already considered. Also it is not very consistent to have such an
option for one particular muxer.

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/img2enc: return error if image rename fails
Marton Balint [Thu, 11 Feb 2016 00:37:37 +0000 (01:37 +0100)]
avformat/img2enc: return error if image rename fails

Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavutil: Remove x86_cpu.h
Timothy Gu [Sun, 7 Feb 2016 17:28:44 +0000 (09:28 -0800)]
avutil: Remove x86_cpu.h

It is private (uninstalled) and unused.

8 years agolavc/hevc Parse SEI_TYPE_MASTERING_DISPLAY_INFO and propagate content into the AVMast...
Neil Birkbeck [Thu, 21 Jan 2016 18:56:50 +0000 (10:56 -0800)]
lavc/hevc Parse SEI_TYPE_MASTERING_DISPLAY_INFO and propagate content into the AVMasteringDisplayMetadata side data.

Add support for parsing SEI_TYPE_MASTERING_DISPLAY_INFO and propagate contents into
the AVMasteringDisplayMetadata side data. Primaries are ordered in RGB order and
the values are converted to rationals ([0,1] for CEI 1931 Chroma coords,
and cd/m^2 for luma).

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibavdevice/dshow.c: Correct CoGetMalloc check
FearThe1337 [Sat, 13 Feb 2016 15:55:02 +0000 (16:55 +0100)]
libavdevice/dshow.c: Correct CoGetMalloc check

Current if statement would always be false due to assigning the value of
S_OK which equals 0.

Signed-off-by: FearThe1337 <git@fearthe1337.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/frame: Free destination qp_table_buf in frame_copy_props()
Michael Niedermayer [Sat, 13 Feb 2016 19:57:26 +0000 (20:57 +0100)]
avutil/frame: Free destination qp_table_buf in frame_copy_props()

Fixes memleak
Fixes: Ticket4899
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is...
Michael Niedermayer [Sat, 13 Feb 2016 14:32:58 +0000 (15:32 +0100)]
avutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is enough space

This allows disabling the alignment by using a compact buffer

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovp9: only call ff_get_format on stream format changes.
Ronald S. Bultje [Mon, 8 Feb 2016 21:29:09 +0000 (16:29 -0500)]
vp9: only call ff_get_format on stream format changes.

In practice, this means we don't call it N times for N-threaded decoding.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate/source: Do not use GNU extensions in sed
Timothy Gu [Fri, 12 Feb 2016 06:26:03 +0000 (22:26 -0800)]
fate/source: Do not use GNU extensions in sed

8 years agoavutil/avstring: add a "ALL" entry and the possibility to negate matches to av_match_...
Michael Niedermayer [Thu, 11 Feb 2016 19:49:05 +0000 (20:49 +0100)]
avutil/avstring: add a "ALL" entry and the possibility to negate matches to av_match_name()

This will extend the whitelist features to allow blacklisting individual protocols and to
explicitly force everything to be enabled.

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavutil/imgutils: do not ignore align parameter for pseudo-pal in av_image_get_buffer_...
Michael Niedermayer [Sat, 13 Feb 2016 14:32:57 +0000 (15:32 +0100)]
avutil/imgutils: do not ignore align parameter for pseudo-pal in av_image_get_buffer_size()

Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodoc/APIchanges: fill in more missing things
Michael Niedermayer [Sat, 13 Feb 2016 15:20:59 +0000 (16:20 +0100)]
doc/APIchanges: fill in more missing things

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodoc/APIchanges: Fill in some missing values
Michael Niedermayer [Sat, 13 Feb 2016 02:01:16 +0000 (03:01 +0100)]
doc/APIchanges: Fill in some missing values

also fix some inconsistencies

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoaacenc: temporarily disable Mid/Side coding with multichannel files
Rostislav Pehlivanov [Sat, 13 Feb 2016 12:23:22 +0000 (12:23 +0000)]
aacenc: temporarily disable Mid/Side coding with multichannel files

Results in dropping out in channels, usually on EIGHT_SHORT windows.
Will be reenabled once the cause has been investigated and a fix has
been made.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavcodec/h264: Fix memleak of a53_caption
Michael Niedermayer [Sat, 13 Feb 2016 01:06:22 +0000 (02:06 +0100)]
avcodec/h264: Fix memleak of a53_caption

Fixes Ticket5111

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/rawdec: Print stride and packet size at debug level
Mats Peterson [Fri, 12 Feb 2016 10:24:30 +0000 (11:24 +0100)]
avcodec/rawdec: Print stride and packet size at debug level

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/rawdec: Fix nut pal8 test
Mats Peterson [Fri, 12 Feb 2016 23:34:02 +0000 (00:34 +0100)]
avcodec/rawdec: Fix nut pal8 test

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/rawdec: Initialize default mono palette only for bits_per_coded_sample == 1
Mats Peterson [Fri, 12 Feb 2016 10:24:30 +0000 (11:24 +0100)]
avcodec/rawdec: Initialize default mono palette only for bits_per_coded_sample == 1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodoc/filters: add one more blend example
Paul B Mahol [Fri, 12 Feb 2016 21:19:20 +0000 (22:19 +0100)]
doc/filters: add one more blend example

This is faster than geq example below.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agodoc/filters: add geq diagonal split screen example
Lou Logan [Fri, 12 Feb 2016 00:44:40 +0000 (15:44 -0900)]
doc/filters: add geq diagonal split screen example

Also remove similar but confusing and less useful example.

Based on geq expression by Patrick Race <raceink at gmail>.

Signed-off-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoaacenc: make a better estimate for the audio bitrate if not provided
Rostislav Pehlivanov [Fri, 12 Feb 2016 18:34:18 +0000 (18:34 +0000)]
aacenc: make a better estimate for the audio bitrate if not provided

Takes into account whether there's pairing and if there's an LFE channel.
An SCE has more bits than CPE/2 since IS and M/S save quite a lot of bits
when channels are paired. And most of the SCEs we have are in surround
layouts which map it to the center channel, which usually carries all of
the dialogue and compression artifacts there are easily audiable.

Also refactors the init function a little bit and labels some parts of it.

Fixes bug #5233

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agodoc/encoders: fix typos in the vc2 encoder documentation
Rostislav Pehlivanov [Fri, 12 Feb 2016 18:38:20 +0000 (18:38 +0000)]
doc/encoders: fix typos in the vc2 encoder documentation

Thanks to RiCON for pointing these out.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoMAINTAINERS: Remove myself as libutvideo maintainer
Derek Buitenhuis [Fri, 12 Feb 2016 17:57:34 +0000 (17:57 +0000)]
MAINTAINERS: Remove myself as libutvideo maintainer

I don't want to touch it, ever again.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agodoc/encoders: add documentation for the VC-2 encoder
Rostislav Pehlivanov [Fri, 12 Feb 2016 16:49:24 +0000 (16:49 +0000)]
doc/encoders: add documentation for the VC-2 encoder

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavfilter/avf_showspectrum: improve pts handling
Paul B Mahol [Fri, 12 Feb 2016 16:14:30 +0000 (17:14 +0100)]
avfilter/avf_showspectrum: improve pts handling

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/af_anequalizer: Avoid loss of precision when calculating nyquist frequency
Michael Niedermayer [Thu, 11 Feb 2016 23:55:49 +0000 (00:55 +0100)]
avfilter/af_anequalizer: Avoid loss of precision when calculating nyquist frequency

Fixes: CID1351398
Fixes: CID1351400
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_zoompan: Initialize ret
Michael Niedermayer [Thu, 11 Feb 2016 23:33:12 +0000 (00:33 +0100)]
avfilter/vf_zoompan: Initialize ret

Silences: CID1351394

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_zoompan: Fix use of uninitialized variables
Michael Niedermayer [Thu, 11 Feb 2016 23:33:11 +0000 (00:33 +0100)]
avfilter/vf_zoompan: Fix use of uninitialized variables

Fixes: CID1351392
Fixes: CID1351393
Fixes: CID1351395
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/vc2enc_dwt: add missing header
James Almer [Fri, 12 Feb 2016 05:06:05 +0000 (02:06 -0300)]
avcodec/vc2enc_dwt: add missing header

Fixes make checkheaders

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavcodec/h264_slice: Fix dequant table init with field pictures
Michael Niedermayer [Fri, 12 Feb 2016 02:43:17 +0000 (03:43 +0100)]
avcodec/h264_slice: Fix dequant table init with field pictures

Fixes regression of Ticket4389

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/h264_slice: assert relation between current_slice ans slice_ctx
Michael Niedermayer [Fri, 12 Feb 2016 02:40:19 +0000 (03:40 +0100)]
avcodec/h264_slice: assert relation between current_slice ans slice_ctx

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/h264_slice: remove duplicate unconditional picture_structure setting code
Michael Niedermayer [Fri, 12 Feb 2016 01:18:24 +0000 (02:18 +0100)]
avcodec/h264_slice: remove duplicate unconditional picture_structure setting code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/cfhd: Fix errors with valid files.
Kieran Kunhya [Fri, 12 Feb 2016 00:26:33 +0000 (00:26 +0000)]
avcodec/cfhd: Fix errors with valid files.

8 years agoavcodec/cfhd: Check the number of tag/value pairs
Michael Niedermayer [Thu, 11 Feb 2016 21:12:36 +0000 (22:12 +0100)]
avcodec/cfhd: Check the number of tag/value pairs

Fixes potentially long loop
Fixes: CID1351382/11
Reviewed-by: Kieran Kunhya <kieran@kunhya.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/avf_ahistogram: assert that variables are initialized by switch()
Michael Niedermayer [Thu, 11 Feb 2016 23:37:11 +0000 (00:37 +0100)]
avfilter/avf_ahistogram: assert that variables are initialized by switch()

Silences: CID1351397

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/avf_showfreqs: assert that variables are initialized by switch()
Michael Niedermayer [Thu, 11 Feb 2016 23:37:11 +0000 (00:37 +0100)]
avfilter/avf_showfreqs: assert that variables are initialized by switch()

Silences: CID1351396

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_zoompan: Remove dead store
Michael Niedermayer [Thu, 11 Feb 2016 23:07:29 +0000 (00:07 +0100)]
avfilter/vf_zoompan: Remove dead store

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/avf_avectorscope: assert that variables are initialized by switch()
Michael Niedermayer [Thu, 11 Feb 2016 22:08:48 +0000 (23:08 +0100)]
avfilter/avf_avectorscope: assert that variables are initialized by switch()

Silences: CID1351390
Silences: CID1351391

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vaf_spectrumsynth: assert that variables are initialized by switch()
Michael Niedermayer [Thu, 11 Feb 2016 22:04:07 +0000 (23:04 +0100)]
avfilter/vaf_spectrumsynth: assert that variables are initialized by switch()

Silences: CID1351387
Silences: CID1351388
Silences: CID1351389

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodoc/filters: fix metadata example
Paul B Mahol [Thu, 11 Feb 2016 15:30:04 +0000 (16:30 +0100)]
doc/filters: fix metadata example

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/f_metadata: rename "string" into "same_str"
Tobias Rapp [Thu, 11 Feb 2016 14:39:57 +0000 (15:39 +0100)]
avfilter/f_metadata: rename "string" into "same_str"

Rename function option value "string" into "same_str". Remove obsolete
"length" option.

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
8 years agoavfilter/f_metadata: whitespace clean-up
Tobias Rapp [Thu, 11 Feb 2016 12:35:22 +0000 (13:35 +0100)]
avfilter/f_metadata: whitespace clean-up

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
8 years agoavfilter/f_metadata: add starts_with string function
Tobias Rapp [Thu, 11 Feb 2016 12:35:20 +0000 (13:35 +0100)]
avfilter/f_metadata: add starts_with string function

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
8 years agoavfilter/f_metadata: add support for file output
Tobias Rapp [Thu, 11 Feb 2016 12:35:21 +0000 (13:35 +0100)]
avfilter/f_metadata: add support for file output

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
8 years agoavfilter/f_metadata: avoid float rounding problems
Tobias Rapp [Thu, 11 Feb 2016 12:35:19 +0000 (13:35 +0100)]
avfilter/f_metadata: avoid float rounding problems

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
8 years agoavfilter/vf_nnedi: Simplify away some trivial mem*()
Michael Niedermayer [Thu, 11 Feb 2016 00:16:52 +0000 (01:16 +0100)]
avfilter/vf_nnedi: Simplify away some trivial mem*()

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate: Update fate-sub2video for 5486d7fa91f7233e6d9aa9ba8de7fe9287402637
Michael Niedermayer [Thu, 11 Feb 2016 00:48:35 +0000 (01:48 +0100)]
fate: Update fate-sub2video for 5486d7fa91f7233e6d9aa9ba8de7fe9287402637

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoMAINTAINERS: add my name to the parts I'm maintaining
Rostislav Pehlivanov [Thu, 11 Feb 2016 00:00:12 +0000 (00:00 +0000)]
MAINTAINERS: add my name to the parts I'm maintaining

Not updated since the AAC Encoder.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agox86/vf_blend: Add SSE2 optimization for screen
Timothy Gu [Tue, 9 Feb 2016 02:20:56 +0000 (02:20 +0000)]
x86/vf_blend: Add SSE2 optimization for screen

10x faster than C.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
8 years agox86/vf_blend: Move multiplying to a macro
Timothy Gu [Tue, 9 Feb 2016 01:59:46 +0000 (01:59 +0000)]
x86/vf_blend: Move multiplying to a macro

Reviewed-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/dualinput: use pts provided by framesync
Paul B Mahol [Tue, 9 Feb 2016 17:32:54 +0000 (18:32 +0100)]
avfilter/dualinput: use pts provided by framesync

This fixes stalled output pts when main stream ends.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat/hlsenc: Fix filename and options
Michael Niedermayer [Wed, 10 Feb 2016 18:02:48 +0000 (19:02 +0100)]
avformat/hlsenc: Fix filename and options

Regression since bc9a5965c815cf7fd998d8ce14a18b8e861dd9ce

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovc2enc: use project-standard inclusion guards
Rostislav Pehlivanov [Wed, 10 Feb 2016 18:02:35 +0000 (18:02 +0000)]
vc2enc: use project-standard inclusion guards

This was first reported on the mailing list in an earlier revision of this
encoder but was forgotten from the final commit.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavformat: add vc2 as an allowed rawenc Dirac extension
Rostislav Pehlivanov [Tue, 2 Feb 2016 12:35:30 +0000 (12:35 +0000)]
avformat: add vc2 as an allowed rawenc Dirac extension

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavcodec: add a native SMPTE VC-2 HQ encoder
Rostislav Pehlivanov [Wed, 10 Feb 2016 16:50:00 +0000 (16:50 +0000)]
avcodec: add a native SMPTE VC-2 HQ encoder

This commit adds a new encoder capable of creating BBC/SMPTE Dirac/VC-2 HQ
profile files.

Dirac is a wavelet based codec created by the BBC a little more than 10
years ago. Since then, wavelets have mostly gone out of style as they
did not provide adequate encoding gains at lower bitrates. Dirac was a
fully featured video codec equipped with perceptual masking, support for
most popular pixel formats, interlacing, overlapped-block motion
compensation, and other features. It found new life after being stripped
of various features and standardized as the VC-2 codec by the SMPTE with
an extra profile, the HQ profile that this encoder supports, added.

The HQ profile was based off of the Low-Delay profile previously
existing in Dirac. The profile forbids DC prediction and arithmetic
coding to focus on high performance and low delay at higher bitrates.
The standard bitrates for this profile vary but generally 1:4
compression is expected (~525 Mbps vs the 2200 Mbps for uncompressed
1080p50). The codec only supports I-frames, hence the high bitrates.

The structure of this encoder is simple: do a DWT transform on the
entire image, split it into multiple slices (specified by the user) and
encode them in parallel. All of the slices are of the same size, making
rate control and threading very trivial. Although only in C, this encoder
is capable of 30 frames per second on an 4 core 8 threads Ivy Bridge.
A lookup table is used to encode most of the coefficients.

No code was used from the GSoC encoder from 2007 except for the 2
transform functions in diracenc_transforms.c. All other code was written
from scratch.

This encoder outperforms any other encoders in quality, usability and in
features. Other existing implementations do not support 4 level
transforms or 64x64 blocks (slices), which greatly increase compression.

As previously said, the codec is meant for broadcasting, hence support
for non-broadcasting image widths, heights, bit depths, aspect ratios,
etc. are limited by the "level". Although this codec supports a few
chroma subsamplings (420, 422, 444), signalling those is generally
outside the specifications of the level used (3) and the reference
decoder will outright refuse to read any image with such a flag
signalled (it only supports 1920x1080 yuv422p10). However, most
implementations will happily read files with alternate dimensions,
framerates and formats signalled.

Therefore, in order to encode files other than 1080p50 yuv422p10le, you
need to provide an "-strict -2" argument to the command line. The FFmpeg
decoder will happily read any files made with non-standard parameters,
dimensions and subsamplings, and so will other implementations. IMO this
should be "-strict -1", but I'll leave that up for discussion.

There are still plenty of stuff to implement, for instance 5 more
wavelet transforms are still in the specs and supported by the decoder.

The encoder can be lossless, given a high enough bitrate.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agooptions_table: update maximum bitrate limit
Rostislav Pehlivanov [Wed, 10 Feb 2016 15:22:59 +0000 (15:22 +0000)]
options_table: update maximum bitrate limit

The type of the option has been changed but the limit was apparently forgotten.
Some video codes can handle bitrates of over ~2.2 Gbps (like VC-2).

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavformat/segment: Fix header_filename handling
Michael Niedermayer [Wed, 10 Feb 2016 16:59:58 +0000 (17:59 +0100)]
avformat/segment: Fix header_filename handling

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agosws/output: fix ordered dither threshold for mono output
Michael Niedermayer [Wed, 10 Feb 2016 09:01:02 +0000 (10:01 +0100)]
sws/output: fix ordered dither threshold for mono output

This makes sure that white stays white and black black

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoMerge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610'
Derek Buitenhuis [Wed, 10 Feb 2016 14:40:32 +0000 (14:40 +0000)]
Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610'

This also deprecates our old duplicated callbacks.

* commit '9f61abc8111c7c43f49ca012e957a108b9cc7610':
  lavf: allow custom IO for all files

Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
8 years agoffmpeg_filter: Factor get_compliance_unofficial_pix_fmts() out
Michael Niedermayer [Wed, 10 Feb 2016 11:57:11 +0000 (12:57 +0100)]
ffmpeg_filter: Factor get_compliance_unofficial_pix_fmts() out

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoffmpeg_filter: Add missing pixel formats to strict_std_compliance case for ljpeg
Michael Niedermayer [Wed, 10 Feb 2016 11:28:12 +0000 (12:28 +0100)]
ffmpeg_filter: Add missing pixel formats to strict_std_compliance case for ljpeg

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoffmpeg_filter: Add YUV 444 to strict_std_compliance case for mjpeg
Michael Niedermayer [Wed, 10 Feb 2016 11:28:12 +0000 (12:28 +0100)]
ffmpeg_filter: Add YUV 444 to strict_std_compliance case for mjpeg

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/f_metadata: fix few logic errors
Paul B Mahol [Wed, 10 Feb 2016 10:47:52 +0000 (11:47 +0100)]
avfilter/f_metadata: fix few logic errors

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agotests: Add test for proper header guard
Timothy Gu [Fri, 29 Jan 2016 02:33:06 +0000 (18:33 -0800)]
tests: Add test for proper header guard

Reviewed-by: Clément Bœsch <u@pkh.me>
8 years agoavfilter: add metadata filters
Paul B Mahol [Sat, 6 Feb 2016 10:19:45 +0000 (11:19 +0100)]
avfilter: add metadata filters

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/vf_nnedi: Fix memleak
Michael Niedermayer [Tue, 9 Feb 2016 12:02:40 +0000 (13:02 +0100)]
avfilter/vf_nnedi: Fix memleak

Fixes CID1351359

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agonut: Add PAL8 support
Michael Niedermayer [Mon, 8 Feb 2016 11:38:42 +0000 (12:38 +0100)]
nut: Add PAL8 support

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/dirac: Fix memleak of dsh on error
Michael Niedermayer [Tue, 9 Feb 2016 13:46:45 +0000 (14:46 +0100)]
avcodec/dirac: Fix memleak of dsh on error

Fixes CID1351360

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