ffmpeg.git
4 years agolavf/dv: do not check for c->sys
Clément Bœsch [Sun, 20 Mar 2016 13:24:53 +0000 (14:24 +0100)]
lavf/dv: do not check for c->sys

dv_extract_video_info() is a static function called only from
avpriv_dv_produce_packet(), where c->sys is made sure to be set.

4 years agoffplay: Remove "&& 0" from already disabled debug code
Michael Niedermayer [Fri, 18 Mar 2016 10:27:57 +0000 (11:27 +0100)]
ffplay: Remove "&& 0" from already disabled debug code

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_waveform: set color range for output frames
Paul B Mahol [Sun, 20 Mar 2016 09:00:53 +0000 (10:00 +0100)]
avfilter/vf_waveform: set color range for output frames

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavformat/utils: Do not wait for more than 1 frame on attachments
Michael Niedermayer [Sat, 19 Mar 2016 21:11:34 +0000 (22:11 +0100)]
avformat/utils: Do not wait for more than 1 frame on attachments

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/wtvdec: Set AVFMTCTX_NOHEADER
Michael Niedermayer [Sat, 19 Mar 2016 21:37:52 +0000 (22:37 +0100)]
avformat/wtvdec: Set AVFMTCTX_NOHEADER

Needed for noStreams.wtv unless something else forces continued parsing (like looking for more than 1
frame in attachments)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_waveform: add graticule to aflat filter
Paul B Mahol [Sat, 19 Mar 2016 20:47:15 +0000 (21:47 +0100)]
avfilter/vf_waveform: add graticule to aflat filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_waveform: add subsampling input support for remaining filters
Paul B Mahol [Sat, 19 Mar 2016 19:44:59 +0000 (20:44 +0100)]
avfilter/vf_waveform: add subsampling input support for remaining filters

Remove achroma filter, as same output can be done with lowpass filter
and multiple components with overlay display.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavformat/file: Add crypto to default whitelist
Michael Niedermayer [Sat, 19 Mar 2016 17:37:53 +0000 (18:37 +0100)]
avformat/file: Add crypto to default whitelist

Fixes Ticket5287

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/mjpegenc_common: Store approximate aspect if exact cannot be stored
Michael Niedermayer [Sat, 19 Mar 2016 14:41:30 +0000 (15:41 +0100)]
avcodec/mjpegenc_common: Store approximate aspect if exact cannot be stored

Fixes Ticket5244

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_detelecine: Remove redundant declaration
Michael Niedermayer [Sat, 19 Mar 2016 11:26:14 +0000 (12:26 +0100)]
avfilter/vf_detelecine: Remove redundant declaration

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/hevc: Allow arbitrary garbage in bytestream as long as at least one NAL unit...
Mark Thompson [Thu, 17 Mar 2016 13:41:02 +0000 (13:41 +0000)]
lavc/hevc: Allow arbitrary garbage in bytestream as long as at least one NAL unit is found.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoFix start_frame handling in detelecine filter
Benjamin Steffes [Thu, 17 Mar 2016 22:10:00 +0000 (23:10 +0100)]
Fix start_frame handling in detelecine filter

Signed-off-by: Benjamin Steffes <benjaminst123@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoFix detelecine filter for patterns containing 1
Benjamin Steffes [Thu, 17 Mar 2016 22:09:59 +0000 (23:09 +0100)]
Fix detelecine filter for patterns containing 1

Signed-off-by: Benjamin Steffes <benjaminst123@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/srtdec: do not be strict wrt timing digit lengths
Clément Bœsch [Fri, 18 Mar 2016 15:41:20 +0000 (16:41 +0100)]
lavf/srtdec: do not be strict wrt timing digit lengths

Fixes a sample with 3-length digits for the seconds reported by wm4.

4 years agolavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y)
Ganesh Ajjanagadde [Tue, 8 Mar 2016 02:16:29 +0000 (21:16 -0500)]
lavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y)

This is ~2x faster for y not an integer on Haswell+GCC, and should
generally be faster due to the fact that anyway powf essentially does
this under the hood. Made an inline function in lavu/internal.h for this
purpose.

Note that there are some accuracy differences, that should generally be
negligible. In particular, FATE still passes on this platform.

Results in ~ 7% speedup in aac encoding with -march=native, Haswell+GCC.
before:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  6.05s user 0.06s system 104% cpu 5.821 total

after:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  5.67s user 0.03s system 105% cpu 5.416 total

This is also faster than an alternative approach that pulls in powf, gets rid of
the crufty NaN checks and other special cases, exploits knowledge about the intervals, etc.
This of course does not exclude smarter approaches; just suggests that
there would need to be significant work on this front of lower utility than
searches for hotspots elsewhere.

Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
4 years agovc2enc_dwt: remove outdated comment
Rostislav Pehlivanov [Fri, 18 Mar 2016 14:42:33 +0000 (14:42 +0000)]
vc2enc_dwt: remove outdated comment

Support for Haar was added a month or so ago.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
4 years agolavf/avidec: Add blurb regarding the skipping of xxpc entries in the index
Mats Peterson [Fri, 18 Mar 2016 10:09:18 +0000 (11:09 +0100)]
lavf/avidec: Add blurb regarding the skipping of xxpc entries in the index

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agovc2enc: increase the starting value of the size scaler
Rostislav Pehlivanov [Fri, 18 Mar 2016 11:55:48 +0000 (11:55 +0000)]
vc2enc: increase the starting value of the  size scaler

In some cases this caused the slice size rounding to generate invalid
slice sizes and overwrite some slices.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
4 years agoavfilter/vf_waveform: add subsampled input support for (a)color filter
Paul B Mahol [Fri, 18 Mar 2016 10:08:32 +0000 (11:08 +0100)]
avfilter/vf_waveform: add subsampled input support for (a)color filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavcodec/error_resilience: remove unneeded and disabled code
Michael Niedermayer [Thu, 17 Mar 2016 20:03:17 +0000 (21:03 +0100)]
avcodec/error_resilience: remove unneeded and disabled code

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/error_resilience: wait for previous frame to be available
Michael Niedermayer [Fri, 18 Mar 2016 01:11:55 +0000 (02:11 +0100)]
avcodec/error_resilience: wait for previous frame to be available

This is possibly redundant but its more correct

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibwebpenc_animencoder: add missing braces to struct initialization
James Almer [Fri, 18 Mar 2016 00:46:06 +0000 (21:46 -0300)]
libwebpenc_animencoder: add missing braces to struct initialization

The first member of the WebPAnimEncoderOptions struct is non scalar

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavcodec/motion_est_template: Fix map cache use in qpel_motion_search()
Michael Niedermayer [Thu, 17 Mar 2016 15:10:12 +0000 (16:10 +0100)]
avcodec/motion_est_template: Fix map cache use in qpel_motion_search()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/segment: Fix "occured" typo
Michael Niedermayer [Thu, 17 Mar 2016 11:17:44 +0000 (12:17 +0100)]
avformat/segment: Fix "occured" typo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolibwebpenc_animencoder: print library messages in verbose log levels
James Almer [Thu, 17 Mar 2016 04:01:02 +0000 (01:01 -0300)]
libwebpenc_animencoder: print library messages in verbose log levels

Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolibwebpenc_animencoder: zero initialize the WebPAnimEncoderOptions struct
James Almer [Thu, 17 Mar 2016 03:50:08 +0000 (00:50 -0300)]
libwebpenc_animencoder: zero initialize the WebPAnimEncoderOptions struct

This zeroes the WebPAnimEncoderOptions.verbose field, silencing library info messages
printed to stderr.

Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/avio: Fix unknown protocol handling
Michael Niedermayer [Thu, 17 Mar 2016 00:53:02 +0000 (01:53 +0100)]
avformat/avio: Fix unknown protocol handling

Fixes regression since bb8cc89b2986df6f60831b67cd250da312cce1d0

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoFix detelecine filter for patterns like 3444 or 33333334.
Benjamin Steffes [Mon, 14 Mar 2016 12:44:24 +0000 (13:44 +0100)]
Fix detelecine filter for patterns like 3444 or 33333334.

Signed-off-by: Benjamin Steffes <benjaminst123@gmail.com>
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
4 years agoavcodec/resample: Remove disabled and faulty code
Michael Niedermayer [Wed, 16 Mar 2016 18:40:32 +0000 (19:40 +0100)]
avcodec/resample: Remove disabled and faulty code

Fixes Ticket5345

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoconfigure: check for SEC_I_CONTEXT_EXPIRED before enabling SChannel
Hendrik Leppkes [Wed, 16 Mar 2016 14:23:28 +0000 (15:23 +0100)]
configure: check for SEC_I_CONTEXT_EXPIRED before enabling SChannel

Fixes build on mingw32, which lacks this constant.

4 years agodxva2_h264: fix size alignment asserts
Hendrik Leppkes [Wed, 16 Mar 2016 12:12:59 +0000 (13:12 +0100)]
dxva2_h264: fix size alignment asserts

Convert them to av_assert0 in the process

4 years agomatroskaenc: set the actual PCM bitdepth in the header
Hendrik Leppkes [Wed, 16 Mar 2016 11:39:19 +0000 (12:39 +0100)]
matroskaenc: set the actual PCM bitdepth in the header

The actual bitdepth can be different to the storage format (ie. sample format).
Fixes the stored bitdepth for 24-bit formats like FLAC.

4 years agolavc/dxva2_h264: Fix incorrect assert statement.
Matt Oliver [Wed, 16 Mar 2016 11:28:29 +0000 (22:28 +1100)]
lavc/dxva2_h264: Fix incorrect assert statement.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
4 years agoindeo2: Fix banding artefacts
Luca Barbato [Tue, 23 Feb 2016 00:58:19 +0000 (19:58 -0500)]
indeo2: Fix banding artefacts

Rename luma table to delta table and change how it is used.

CC: libav-stable@libav.org
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
(cherry picked from commit f8c34f4b8d62afad3f63cf3d9617d73735bef8c1)

4 years agoindeo2data: K&R formatting cosmetics
Luca Barbato [Tue, 23 Feb 2016 00:58:18 +0000 (19:58 -0500)]
indeo2data: K&R formatting cosmetics

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
(cherry picked from commit d4066a702407352a0648af882c34ea81a404fa2b)

4 years agohls: handle crypto in the protocol checks
Hendrik Leppkes [Mon, 14 Mar 2016 11:19:31 +0000 (12:19 +0100)]
hls: handle crypto in the protocol checks

Fixes issue 5248

4 years agohls: read protocol options through the AVIOContext
Hendrik Leppkes [Mon, 14 Mar 2016 10:38:20 +0000 (11:38 +0100)]
hls: read protocol options through the AVIOContext

This reverts commit 9f9ed79d4cb40e5d9093899f8a79086ff23da844.

The hlsopts member was never set anywhere and always NULL, furthermore
the HLS demuxer needs to retrieve the proper options from the underlying
http protocol (cookies, user-agent, etc), so a dummy context won't help.

Instead, use the AVIOContext directly to access the options.

4 years agoconfigure: Use lowercase includes/library names for schannel check.
İsmail Dönmez [Tue, 8 Mar 2016 12:45:16 +0000 (14:45 +0200)]
configure: Use lowercase includes/library names for schannel check.

Fixes cross-build on Linux with mingw-w64.

Reviewed-by: Reimar Döffinger
Reviewed-by: Hendrik Leppkes
4 years agoavfilter/vf_bwdif: Add yadif base information to copyright header
Thomas Mundt [Tue, 15 Mar 2016 15:04:20 +0000 (16:04 +0100)]
avfilter/vf_bwdif: Add yadif base information to copyright header

Signed-off-by: Thomas Mundt <loudmax@yahoo.de>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years agolavf/segment: change type of increment_tc to BOOL
Stefano Sabatini [Tue, 15 Mar 2016 16:50:00 +0000 (17:50 +0100)]
lavf/segment: change type of increment_tc to BOOL

4 years agolavf/segment: add increment_tc option
Martin Vignali [Sun, 28 Feb 2016 20:36:42 +0000 (21:36 +0100)]
lavf/segment: add increment_tc option

For example you can split a file, keeping a continuous timecode between
each segment:
ffmpeg -i src.mov -timecode 10:00:00:00 -vcodec copy -f segment \
-segment_time 2 -reset_timestamps 1 -increment_tc 1 target_%03d.mov

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
4 years agoavcodec/mediacodec_sw_buffer: remove redundant article
Michael Niedermayer [Tue, 15 Mar 2016 02:20:17 +0000 (03:20 +0100)]
avcodec/mediacodec_sw_buffer: remove redundant article

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/mediacodec: remove stray empty lines
Matthieu Bouron [Mon, 14 Mar 2016 18:41:53 +0000 (19:41 +0100)]
lavc/mediacodec: remove stray empty lines

4 years agolavc/mediacodec: fix codec_name leak
Matthieu Bouron [Mon, 14 Mar 2016 18:27:14 +0000 (19:27 +0100)]
lavc/mediacodec: fix codec_name leak

4 years agoavfilter/vf_waveform: add forgotten color and acolor filter to switch case
Paul B Mahol [Tue, 15 Mar 2016 08:15:03 +0000 (09:15 +0100)]
avfilter/vf_waveform: add forgotten color and acolor filter to switch case

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavutil/dict: add warning to docs about invalidating existing entries when adding...
Marton Balint [Sat, 6 Feb 2016 16:43:03 +0000 (17:43 +0100)]
avutil/dict: add warning to docs about invalidating existing entries when adding a new entry

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavutil/dict: do not realloc entries when deleting a non-existing item
Marton Balint [Sat, 6 Feb 2016 16:23:02 +0000 (17:23 +0100)]
avutil/dict: do not realloc entries when deleting a non-existing item

Deleting a non-existing item should not invalidate existing entries returned
with av_dict_get.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavcodec/pthread_frame: Remove unused variable
Michael Niedermayer [Mon, 14 Mar 2016 22:57:34 +0000 (23:57 +0100)]
avcodec/pthread_frame: Remove unused variable

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/aactab: do not use floats for constants
Marton Balint [Sat, 5 Mar 2016 03:24:45 +0000 (04:24 +0100)]
avcodec/aactab: do not use floats for constants

This may improve the precision of the fixed point encoder/decoder for some
compilers and architectures.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
4 years agoavfilter/vf_waveform: add graticule for chroma and flat filter
Paul B Mahol [Mon, 14 Mar 2016 22:01:57 +0000 (23:01 +0100)]
avfilter/vf_waveform: add graticule for chroma and flat filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/af_sofalizer: Fix "warning: ISO C90 forbids mixed declarations and code"
Michael Niedermayer [Mon, 14 Mar 2016 21:40:09 +0000 (22:40 +0100)]
avfilter/af_sofalizer: Fix "warning: ISO C90 forbids mixed declarations and code"

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/mxfdec: Fix Canopus essence element size.
Carl Eugen Hoyos [Mon, 14 Mar 2016 15:37:48 +0000 (16:37 +0100)]
lavf/mxfdec: Fix Canopus essence element size.

4 years agolavf/http: Add httpproxy to the default protocol whitelist.
Carl Eugen Hoyos [Mon, 14 Mar 2016 15:33:57 +0000 (16:33 +0100)]
lavf/http: Add httpproxy to the default protocol whitelist.

4 years agoavcodec/cbrt_data: include avutil/libm.h to unbreak compilation on systems without...
Hendrik Leppkes [Mon, 14 Mar 2016 14:49:34 +0000 (15:49 +0100)]
avcodec/cbrt_data: include avutil/libm.h to unbreak compilation on systems without cbrt

4 years agoavfilter/vf_waveform: remove mirroring from chroma filter
Paul B Mahol [Mon, 14 Mar 2016 12:02:02 +0000 (13:02 +0100)]
avfilter/vf_waveform: remove mirroring from chroma filter

It is not really useful.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_waveform: add >8 bit support for other filters
Paul B Mahol [Mon, 14 Mar 2016 11:37:43 +0000 (12:37 +0100)]
avfilter/vf_waveform: add >8 bit support for other filters

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavc/ffjni: remove use of private JniInvocation API to retreive the Java VM
Matthieu Bouron [Fri, 11 Mar 2016 19:59:40 +0000 (20:59 +0100)]
lavc/ffjni: remove use of private JniInvocation API to retreive the Java VM

Android N will prevent users from loading non-public APIs.

Users should only rely on the av_jni_set_java_vm function to set the
Java VM.

4 years agoavfilter/vf_vectorscope: less aggressive memory allocation
Paul B Mahol [Sun, 13 Mar 2016 19:07:18 +0000 (20:07 +0100)]
avfilter/vf_vectorscope: less aggressive memory allocation

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_vectorscope: process alpha at end
Paul B Mahol [Sun, 13 Mar 2016 18:20:07 +0000 (19:20 +0100)]
avfilter/vf_vectorscope: process alpha at end

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_vectorscope: copy frame props, mainly for bench filter
Paul B Mahol [Sun, 13 Mar 2016 18:23:05 +0000 (19:23 +0100)]
avfilter/vf_vectorscope: copy frame props, mainly for bench filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoMove cbrt tables to separate cbrt_data(_fixed).c files.
Reimar Döffinger [Sat, 12 Mar 2016 18:08:21 +0000 (19:08 +0100)]
Move cbrt tables to separate cbrt_data(_fixed).c files.

Allows sharing and reusing the data between different files.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
4 years agolavu/lfg-test: add simple sample mean, stddev checks
Ganesh Ajjanagadde [Sat, 12 Mar 2016 12:37:06 +0000 (07:37 -0500)]
lavu/lfg-test: add simple sample mean, stddev checks

Also added a TODO to change to a proper normality test in the future.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
4 years agolavf/avienc: Clear whole tag in avi_add_ientry()
Mats Peterson [Sun, 13 Mar 2016 15:09:45 +0000 (16:09 +0100)]
lavf/avienc: Clear whole tag in avi_add_ientry()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/avienc: Add xxpc entries to index
Mats Peterson [Sat, 12 Mar 2016 15:18:36 +0000 (16:18 +0100)]
lavf/avienc: Add xxpc entries to index

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/avienc: factor out avi_add_ientry()
Mats Peterson [Sat, 12 Mar 2016 15:18:36 +0000 (16:18 +0100)]
avformat/avienc: factor out avi_add_ientry()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavc/hevc_ps: Fix default display window offsets for yuv422 and yuv444.
Carl Eugen Hoyos [Sun, 13 Mar 2016 12:15:17 +0000 (13:15 +0100)]
lavc/hevc_ps: Fix default display window offsets for yuv422 and yuv444.

4 years agolavf/riffenc: Improve spec compliance; Fix WMP playback of AVI with xxpc chunks
Mats Peterson [Sun, 13 Mar 2016 07:59:22 +0000 (08:59 +0100)]
lavf/riffenc: Improve spec compliance; Fix WMP playback of AVI with xxpc chunks

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agotests/ref/vsynth: Remove unused file
Mats Peterson [Sun, 13 Mar 2016 07:59:22 +0000 (08:59 +0100)]
tests/ref/vsynth: Remove unused file

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_waveform: add acolor filter
Paul B Mahol [Sun, 13 Mar 2016 10:23:27 +0000 (11:23 +0100)]
avfilter/vf_waveform: add acolor filter

Useful in combination with color filter.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_bwdif: add x86 SIMD
Thomas Mundt [Sun, 13 Mar 2016 09:06:21 +0000 (10:06 +0100)]
avfilter/vf_bwdif: add x86 SIMD

Signed-off-by: Thomas Mundt <loudmax@yahoo.de>
4 years agolavc/libx265: Support GBR encoding.
Carl Eugen Hoyos [Sun, 13 Mar 2016 08:40:09 +0000 (09:40 +0100)]
lavc/libx265: Support GBR encoding.

4 years agolavc/hevc_ps: Support GBR decoding.
Carl Eugen Hoyos [Sun, 13 Mar 2016 08:33:38 +0000 (09:33 +0100)]
lavc/hevc_ps: Support GBR decoding.

4 years agoavfilter/vf_decimate: Use the correct frame in difference calculation
Michael Niedermayer [Wed, 16 Dec 2015 17:54:55 +0000 (18:54 +0100)]
avfilter/vf_decimate: Use the correct frame in difference calculation

Fixes Ticket4964

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoRevert "avfilter/vf_decimate: Check that input parameters match"
Michael Niedermayer [Wed, 16 Dec 2015 17:26:47 +0000 (18:26 +0100)]
Revert "avfilter/vf_decimate: Check that input parameters match"

ill commit a better solution

This reverts commit 30fe3fd52721c8c6566001192cd16be423ffc92b.

4 years agoavfilter/vf_vectorscope: make it possible to override colorspace
Paul B Mahol [Sat, 12 Mar 2016 23:17:29 +0000 (00:17 +0100)]
avfilter/vf_vectorscope: make it possible to override colorspace

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/smptebars: fix some 75% color values
Paul B Mahol [Sat, 12 Mar 2016 22:49:05 +0000 (23:49 +0100)]
avfilter/smptebars: fix some 75% color values

They where slightly off.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agofate: add missing dependencies for fate-h264-dts_5frames
James Almer [Sat, 12 Mar 2016 22:14:35 +0000 (19:14 -0300)]
fate: add missing dependencies for fate-h264-dts_5frames

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agofate: add missing h264-dts_5frames ref file
James Almer [Sat, 12 Mar 2016 22:06:30 +0000 (19:06 -0300)]
fate: add missing h264-dts_5frames ref file

Signed-off-by: James Almer <jamrial@gmail.com>
4 years agoavformat/hlsenc: Add support for HLS PLAYLIST types EVENT and VOD
Adam Kent [Thu, 17 Dec 2015 03:16:45 +0000 (03:16 +0000)]
avformat/hlsenc: Add support for HLS PLAYLIST types EVENT and VOD

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: Add ffprobe dependancy to fate-h264-dts_5frames
Michael Niedermayer [Sat, 12 Mar 2016 14:37:25 +0000 (15:37 +0100)]
fate: Add ffprobe dependancy to fate-h264-dts_5frames

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agofate: add test for "Fix DTS for short H264 streams"
Sasi Inguva [Sat, 12 Mar 2016 10:40:25 +0000 (02:40 -0800)]
fate: add test for "Fix DTS for short H264 streams"

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agolavf/utils: Fix DTS for short H264 streams.
Sasi Inguva [Sat, 12 Mar 2016 10:40:25 +0000 (02:40 -0800)]
lavf/utils: Fix DTS for short H264 streams.

Fill DTS if all packets have been read in avformat_find_stream_info, and still
has_decode_delay_been_guessed returns false.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavformat/utils: factor update_dts_from_pts() out
Sasi Inguva [Sat, 12 Mar 2016 10:40:25 +0000 (02:40 -0800)]
avformat/utils: factor update_dts_from_pts() out

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoUse avpriv_tempfile()
Michael Niedermayer [Wed, 9 Mar 2016 14:28:28 +0000 (15:28 +0100)]
Use avpriv_tempfile()

Should fix xvid/cache on windows with --enable-shared

May be related to Ticket 4780

Tested-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavutil/file: Move av_tempfile() to avutil/file_open ff_tempfile()
Michael Niedermayer [Wed, 9 Mar 2016 13:33:25 +0000 (14:33 +0100)]
avutil/file: Move av_tempfile() to avutil/file_open ff_tempfile()

document the issue with av_tempfile()

Tested-by: Hendrik Leppkes <h.leppkes@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavcodec/alsdec: fix max bits in ltp prefix code
Umair Khan [Fri, 11 Mar 2016 21:04:30 +0000 (02:34 +0530)]
avcodec/alsdec: fix max bits in ltp prefix code

The maximum number of bits int the prefix code for
p(0) is 4. By setting it as 3, we were missing the
last 0 bit.
This fixes bug #4715 present on the trac.

Signed-off-by: Umair Khan <omerjerk@gmail.com>
Reviewed-by: Thilo Borgmann <thilo.borgmann@mail.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoconfigure: build fix for P5600 along option --disable-msa
Shivraj Patil [Fri, 11 Mar 2016 08:16:42 +0000 (13:46 +0530)]
configure: build fix for P5600 along option --disable-msa

Signed-off-by: Shivraj Patil <shivraj.patil@imgtec.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_waveform: add parade display mode
Paul B Mahol [Fri, 11 Mar 2016 13:20:45 +0000 (14:20 +0100)]
avfilter/vf_waveform: add parade display mode

Rename old parade display mode to stacked.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agovp9: fix a few signed integer left-shifts.
Ronald S. Bultje [Fri, 11 Mar 2016 19:40:15 +0000 (14:40 -0500)]
vp9: fix a few signed integer left-shifts.

Fixes trac tickets 5127, 5129, 5130.

4 years agovp9_superframe: fix endianness of size markers.
Ronald S. Bultje [Fri, 11 Mar 2016 19:22:38 +0000 (14:22 -0500)]
vp9_superframe: fix endianness of size markers.

4 years agovp9: add superframe merging bitstream filter.
Ronald S. Bultje [Mon, 29 Feb 2016 14:43:07 +0000 (09:43 -0500)]
vp9: add superframe merging bitstream filter.

Fixes ticket 4313.

4 years agolavf: allow BSFs to drop packets.
Ronald S. Bultje [Mon, 29 Feb 2016 14:42:54 +0000 (09:42 -0500)]
lavf: allow BSFs to drop packets.

If pkt->size == 0 && pkt->side_data_elems == 0 after bsf->filter()
returns, the packet is considered dropped.

4 years agoavfilter/vf_waveform: fix and extend millivolts grat lines
Paul B Mahol [Fri, 11 Mar 2016 09:24:51 +0000 (10:24 +0100)]
avfilter/vf_waveform: fix and extend millivolts grat lines

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_waveform: fix ire8 for 25%
Paul B Mahol [Fri, 11 Mar 2016 08:51:12 +0000 (09:51 +0100)]
avfilter/vf_waveform: fix ire8 for 25%

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agolavc/lpc: exploit even symmetry of window function
Ganesh Ajjanagadde [Wed, 9 Mar 2016 03:08:29 +0000 (22:08 -0500)]
lavc/lpc: exploit even symmetry of window function

Yields 2x improvement in function performance, and boosts aac encoding
speed by ~ 4% overall. Sample benchmark (Haswell+GCC under -march=native):
after:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  5.22s user 0.03s system 105% cpu 4.970 total

before:
ffmpeg -i sin.flac -acodec aac -y sin_new.aac  5.40s user 0.05s system 105% cpu 5.162 total

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
4 years agoavformat/hlsenc: Fix passing options, regression since bc9a5965c815cf7fd998d8ce14a18b...
Michael Niedermayer [Thu, 10 Mar 2016 23:29:59 +0000 (00:29 +0100)]
avformat/hlsenc: Fix passing options, regression since bc9a5965c815cf7fd998d8ce14a18b8e861dd9ce

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavfilter/vf_waveform: fix indentation
Paul B Mahol [Thu, 10 Mar 2016 23:15:53 +0000 (00:15 +0100)]
avfilter/vf_waveform: fix indentation

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavfilter/vf_waveform add support for other scalers for graticule
Paul B Mahol [Thu, 10 Mar 2016 21:13:40 +0000 (22:13 +0100)]
avfilter/vf_waveform add support for other scalers for graticule

Signed-off-by: Paul B Mahol <onemda@gmail.com>
4 years agoavutil/random_seed: Add the runtime in cycles of the main loop to the entropy pool
Michael Niedermayer [Wed, 9 Dec 2015 14:18:53 +0000 (15:18 +0100)]
avutil/random_seed: Add the runtime in cycles of the main loop to the entropy pool

This should theoretically improve the randomness slightly

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4 years agoavutil/channel_layout: AV_CH_LAYOUT_6POINT1_BACK not reachable in parsing
Martin Cracauer [Tue, 1 Dec 2015 22:59:36 +0000 (17:59 -0500)]
avutil/channel_layout: AV_CH_LAYOUT_6POINT1_BACK not reachable in parsing

Trying to make heads and tails out of DTS 6.1 I can across this typo.

I also noticed that this wiki page is incorrect or misleading, the
channel order for 6.1 given does not match the source code.  At the
least it should be clarified that the layout given does not apply to
DTS.  https://trac.ffmpeg.org/wiki/AudioChannelManipulation

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