]> git.sesse.net Git - ffmpeg/log
ffmpeg
8 years agolavc/rawdec: Use 16-byte line alignment for AV_PIX_FMT_MONOWHITE
Mats Peterson [Mon, 25 Jan 2016 17:09:18 +0000 (18:09 +0100)]
lavc/rawdec: Use 16-byte line alignment for AV_PIX_FMT_MONOWHITE

The line alignment for 1 bpp raw AV_PIX_FMT_MONOWHITE video (currently
used for AVI) was previously 4 bytes, which generated alignment warning
messages, not only for odd-width files. The alignment is now 16 bytes.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/synth_filter: split off remaining code from dcadec files
James Almer [Mon, 25 Jan 2016 02:52:19 +0000 (23:52 -0300)]
avcodec/synth_filter: split off remaining code from dcadec files

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavcodec/dcaenc: do not change user requested bitrate
Paul B Mahol [Mon, 25 Jan 2016 15:54:53 +0000 (16:54 +0100)]
avcodec/dcaenc: do not change user requested bitrate

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/dcaenc: return correct number of bytes in output packet
Paul B Mahol [Mon, 25 Jan 2016 15:03:17 +0000 (16:03 +0100)]
avcodec/dcaenc: return correct number of bytes in output packet

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavcodec/utils: run ff_frame_thread_encoder_init() only for encoders
Michael Niedermayer [Mon, 25 Jan 2016 15:06:03 +0000 (16:06 +0100)]
avcodec/utils: run ff_frame_thread_encoder_init() only for encoders

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/rawdec: Check height and packet size
Michael Niedermayer [Mon, 25 Jan 2016 02:42:45 +0000 (03:42 +0100)]
avcodec/rawdec: Check height and packet size

Avoids potential division by 0

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavc/rawdec: Use 16-byte line alignment for 1, 2, 4 and 8 bpp
Mats Peterson [Mon, 25 Jan 2016 02:59:49 +0000 (03:59 +0100)]
lavc/rawdec: Use 16-byte line alignment for 1, 2, 4 and 8 bpp

This patch aligns the lines of 1 bpp depth for QuickTime, and 2, 4 and 8
bpp depths for AVI and QuickTime, on 16-byte boundaries. At the same
time, the packet row stride is properly catered for.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/rawdec: initialize palette for mono
Mats Peterson [Tue, 19 Jan 2016 17:48:06 +0000 (18:48 +0100)]
avcodec/rawdec: initialize palette for mono

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/webp: fix decoder dependencies
James Almer [Sun, 24 Jan 2016 23:30:33 +0000 (20:30 -0300)]
avcodec/webp: fix decoder dependencies

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavformat/hls: Check that filename is not "" in probe before checking its extension
Michael Niedermayer [Sun, 24 Jan 2016 19:07:48 +0000 (20:07 +0100)]
avformat/hls: Check that filename is not "" in probe before checking its extension

Possibly the check as a whole causes more problems than it helps, if so dont
hesitate to remove it

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/flacenc: fix calculation of bits required in case of custom sample rate
Paul B Mahol [Sun, 24 Jan 2016 19:47:49 +0000 (20:47 +0100)]
avcodec/flacenc: fix calculation of bits required in case of custom sample rate

Sample rate of 11025 takes 16 bits but previous code would pick only 8.
Fixes assertion failure.

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoRevert "decklink: Header cleanup"
Timothy Gu [Sun, 24 Jan 2016 20:42:39 +0000 (12:42 -0800)]
Revert "decklink: Header cleanup"

This reverts commit 61fb70c3866b19dccf473ad4e5ede79d117e8e1c.

Reported in #5183 to break the build. Further investigation needed.

8 years agoavfilter/vf_zoompan: fix pts handling
Paul B Mahol [Sun, 24 Jan 2016 18:57:56 +0000 (19:57 +0100)]
avfilter/vf_zoompan: fix pts handling

Now output pts have some sense.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/vf_zoompan: unbreak filtering with video input
Paul B Mahol [Sun, 24 Jan 2016 18:12:33 +0000 (19:12 +0100)]
avfilter/vf_zoompan: unbreak filtering with video input

Inserting fifo appears to be working solution to not get
filter_frame request we do not want.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoChangelog: Add entry on libquvi being removed
Timothy Gu [Sun, 24 Jan 2016 17:45:11 +0000 (09:45 -0800)]
Changelog: Add entry on libquvi being removed

8 years agoconfigure: Maintain alphabetical order of components
Timothy Gu [Sun, 24 Jan 2016 17:28:55 +0000 (09:28 -0800)]
configure: Maintain alphabetical order of components

This is not "pure" alphabetical order since some components are
intentionally kept together.

8 years agoavfilter/vf_zoompan: rewrite so it doesn't cache all output frames
Paul B Mahol [Sun, 24 Jan 2016 10:38:15 +0000 (11:38 +0100)]
avfilter/vf_zoompan: rewrite so it doesn't cache all output frames

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agolavfi: recognize GBR9-14P as RGB in ff_fill_rgba_map().
Ronald S. Bultje [Thu, 21 Jan 2016 14:28:30 +0000 (09:28 -0500)]
lavfi: recognize GBR9-14P as RGB in ff_fill_rgba_map().

8 years agoavformat: Remove support for libquvi
Kieran Kunhya [Sun, 24 Jan 2016 15:54:00 +0000 (15:54 +0000)]
avformat: Remove support for libquvi

libquvi has not been updated since 2013.
It also has a number of security issues.

8 years agoPrint the whitelists if entities are not found on them
Michael Niedermayer [Sun, 24 Jan 2016 15:15:24 +0000 (16:15 +0100)]
Print the whitelists if entities are not found on them

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat: Document urls a bit
Michael Niedermayer [Fri, 22 Jan 2016 23:35:46 +0000 (00:35 +0100)]
avformat: Document urls a bit

Spell-checked-by: Moritz Barsnick <barsnick@gmx.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodecklink: Header cleanup
Timothy Gu [Wed, 2 Dec 2015 04:58:51 +0000 (20:58 -0800)]
decklink: Header cleanup

This commit cleans up the decklink files' header usage so that they pass
checkheaders.

8 years agocommon.mak: Use CCFLAGS for assembly generation as well
Timothy Gu [Wed, 2 Dec 2015 04:55:37 +0000 (20:55 -0800)]
common.mak: Use CCFLAGS for assembly generation as well

CCFLAGS is equivalent to CPPFLAGS + CFLAGS, and it is already being used
by other make rules like %.i and %.o. Simplifies common.mak.

8 years agoavdevice: Mark decklink_common.h as unconditional SKIPHEADER
Timothy Gu [Wed, 2 Dec 2015 05:44:50 +0000 (21:44 -0800)]
avdevice: Mark decklink_common.h as unconditional SKIPHEADER

It is a C++ file, incompatible with the checkheaders infrastructure.

8 years agolavfi/pthread: fix perameters/parameters typo
Clément Bœsch [Sun, 24 Jan 2016 13:41:00 +0000 (14:41 +0100)]
lavfi/pthread: fix perameters/parameters typo

8 years agoavfilter: update some comments
Paul B Mahol [Sun, 24 Jan 2016 12:14:26 +0000 (13:14 +0100)]
avfilter: update some comments

start_frame is no more, samplesref argument is now frame argument.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agobuild: fix msvc build
Charlie Arnold [Sat, 23 Jan 2016 21:11:59 +0000 (13:11 -0800)]
build: fix msvc build

Fix configure to set DST_PATH to the Windows style path when building with MSVC

Fixes ticket #5180.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years agobuild: fix make checkheaders in out-of-tree builds
Andreas Cadhalpun [Sat, 23 Jan 2016 10:55:54 +0000 (11:55 +0100)]
build: fix make checkheaders in out-of-tree builds

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years agofate/cabac: replace uninitialized bytes by random bytes
Michael Niedermayer [Sat, 23 Jan 2016 19:30:02 +0000 (20:30 +0100)]
fate/cabac: replace uninitialized bytes by random bytes

Fixes valgrind warning

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/vf_convolution: Use av_clip_uint8()
Michael Niedermayer [Sat, 23 Jan 2016 17:29:48 +0000 (18:29 +0100)]
avfilter/vf_convolution: Use av_clip_uint8()

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agofate/ffmpeg: Fix colorkey test failure without samples
Michael Niedermayer [Sat, 23 Jan 2016 17:28:47 +0000 (18:28 +0100)]
fate/ffmpeg: Fix colorkey test failure without samples

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodxva2_h264: fix reference field marking in long slice struct
Hendrik Leppkes [Fri, 22 Jan 2016 12:50:42 +0000 (13:50 +0100)]
dxva2_h264: fix reference field marking in long slice struct

Fixes artifacts in interlaced decoding on old Intel GPUs.

8 years agoavcodec/mpeg4videoenc: Use 64bit for time variables
Michael Niedermayer [Sat, 23 Jan 2016 00:49:21 +0000 (01:49 +0100)]
avcodec/mpeg4videoenc: Use 64bit for time variables

Fixes assertion failure and integer overflow
Fixes: fc677bbea2c6f901763eb637b61fa5e2/signal_sigabrt_7ffff6ae7cb7_9556_dfd95f040a69f725d1b2f861bd491725.ivf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/libquvi: Set default demuxer and protocol limitations
Michael Niedermayer [Wed, 20 Jan 2016 14:25:32 +0000 (15:25 +0100)]
avformat/libquvi: Set default demuxer and protocol limitations

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/concat: Check protocol prefix
Michael Niedermayer [Wed, 20 Jan 2016 10:10:27 +0000 (11:10 +0100)]
avformat/concat: Check protocol prefix

Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodoc/demuxers: Document enable_drefs and use_absolute_path
Michael Niedermayer [Wed, 20 Jan 2016 15:49:43 +0000 (16:49 +0100)]
doc/demuxers: Document enable_drefs and use_absolute_path

Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter/af_ladspa: accepts ' ' as command separator too
Paul B Mahol [Fri, 22 Jan 2016 20:41:11 +0000 (21:41 +0100)]
avfilter/af_ladspa: accepts ' ' as command separator too

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agodiracdec: fix full range videos
Rostislav Pehlivanov [Fri, 22 Jan 2016 17:07:16 +0000 (17:07 +0000)]
diracdec: fix full range videos

Full range video had been broken by the introduction of the < 2U check
at the following line. The bitstream format kind of implies that the full
and limited ranges use different pix_fmts but that's incorrect since we
have the avctx->color_range flag. So adjust the pixel range index to
be mapped to the same pix_fmts as limited range index.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavfilter/vf_convolution: add timeline support
Paul B Mahol [Fri, 22 Jan 2016 16:54:44 +0000 (17:54 +0100)]
avfilter/vf_convolution: add timeline support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agofate: Add a small number of rawvideo in mov tests
Michael Niedermayer [Fri, 22 Jan 2016 14:59:31 +0000 (15:59 +0100)]
fate: Add a small number of rawvideo in mov tests

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibavformat/tcp.c : add send_buffer_size and recv_buffer_size options
Perette Barella [Tue, 19 Jan 2016 18:22:13 +0000 (13:22 -0500)]
libavformat/tcp.c : add send_buffer_size and recv_buffer_size options

adds two new options that may be set via the dictionary:

- send_buffer_size
- recv_buffer_size

When present, setsockopt() is used with SO_SNDBUF and SO_RCVBUF to set
socket buffer sizes.  I chose to make send and receive independent
because buffering requirements are often asymmetric.

Errors in setting the buffer size mean the socket will use its
default, so they are ignored.

There is no sanity checking on values, as the kernel/socket layers
already impose reasonable limits if asked for something crazy.

Rationale for enlarging receive buffers is to reduce susceptibility
to intermittent network delays/congestion.  I added setting the send
buffer for symmetry.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavc/wmadec: replace pow by faster functions
Ganesh Ajjanagadde [Fri, 15 Jan 2016 18:51:03 +0000 (13:51 -0500)]
lavc/wmadec: replace pow by faster functions

Further speedups possible by getting rid of exp2f...

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agolavc/opus_celt: replace pow(2,x) by exp2f(x)
Ganesh Ajjanagadde [Fri, 15 Jan 2016 18:45:30 +0000 (13:45 -0500)]
lavc/opus_celt: replace pow(2,x) by exp2f(x)

Faster methods possible; since exponent is always a multiple of 1/8.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agolavc/atrac3plusdsp: change pow(2,x) to exp2f(x)
Ganesh Ajjanagadde [Fri, 15 Jan 2016 18:38:43 +0000 (13:38 -0500)]
lavc/atrac3plusdsp: change pow(2,x) to exp2f(x)

Much faster generation possible; but array is small so don't want to bloat
the binary.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agolavc/wma: add av_warn_unused_result to ff_wma_init
Ganesh Ajjanagadde [Thu, 21 Jan 2016 02:52:40 +0000 (08:22 +0530)]
lavc/wma: add av_warn_unused_result to ff_wma_init

May help to prevent incidents like 19e456d48c90a1e3ceeb9e6241383384cc73dfdf.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
8 years agofate: add 1 and 15BPP rawvideo in avi tests
Michael Niedermayer [Fri, 22 Jan 2016 12:06:46 +0000 (13:06 +0100)]
fate: add 1 and 15BPP rawvideo in avi tests

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavfilter: add convolution filter
Paul B Mahol [Fri, 22 Jan 2016 10:52:58 +0000 (11:52 +0100)]
avfilter: add convolution filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter/avf_showwaves: add logarithmic amplitude scaler
Paul B Mahol [Thu, 21 Jan 2016 19:07:12 +0000 (20:07 +0100)]
avfilter/avf_showwaves: add logarithmic amplitude scaler

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agocabac_functions: Allow more functions to be overridden
John Cox [Wed, 20 Jan 2016 17:59:30 +0000 (17:59 +0000)]
cabac_functions: Allow more functions to be overridden

Allow more of the cabac functions to be overridden and avoid generating any
code for unwanted refill functions.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agocabac_functions: Count zeros with ctz if it is fast
John Cox [Wed, 20 Jan 2016 17:56:30 +0000 (17:56 +0000)]
cabac_functions: Count zeros with ctz if it is fast

When refilling the low bit buffer after get_cabac count the bits with ctz
if the processor has a fast version.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agocabac: Ensure 2-byte cabac loads are on 2-byte boundry
John Cox [Wed, 20 Jan 2016 17:48:30 +0000 (17:48 +0000)]
cabac: Ensure 2-byte cabac loads are on 2-byte boundry

Ensure that cabac init sets the bitstream pointer to an even value.
It is often faster to load from an aligned boundry

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoAdd missing conversions from side data enum to name
Neil Birkbeck [Thu, 21 Jan 2016 18:34:29 +0000 (10:34 -0800)]
Add missing conversions from side data enum to name

Add names for recently added enums to av_frame_side_data_name.

Signed-off-by: Neil Birkbeck <neil.birkbeck@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agobuild: make out-of-tree builds bit-identical to in-tree builds
Andreas Cadhalpun [Mon, 28 Dec 2015 21:00:39 +0000 (22:00 +0100)]
build: make out-of-tree builds bit-identical to in-tree builds

Previously the full source path was embedded inconsistently in the debug
information between in-tree/out-of-tree builds.

The 'vpath %.inc' becomes necessary for finding
libavfilter/all_channel_layouts.inc in out-of-tree builds.

The full source path is still embedded in the debug information, but
it's now independent of whether building in-tree or out-of-tree.

The biggest improvement of this patch is that gdb now always searches
for the path relative to the source directory. It still also searches
for the full path.
Previously it searched only for the full path in out-of-tree builds,
making the debug information generated by Debian's buildds rather hard
to use.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years agoavcodec/mjpegdec: Check for end for both bytes in unescaping
Michael Niedermayer [Thu, 21 Jan 2016 20:01:47 +0000 (21:01 +0100)]
avcodec/mjpegdec: Check for end for both bytes in unescaping

Fixes assertion failure
Fixes: c40c779601b77dc6e19aaea0b04b9751/signal_sigabrt_7ffff6ae7cb7_5769_b94f6ec70caecb2d3d76b4771b109ac1.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agox86inc: Add debug symbols indicating sizes of compiled functions
Geza Lore [Mon, 12 Oct 2015 12:13:00 +0000 (13:13 +0100)]
x86inc: Add debug symbols indicating sizes of compiled functions

Some debuggers/profilers use this metadata to determine which function a
given instruction is in; without it they get can confused by local labels
(if you haven't stripped those). On the other hand, some tools are still
confused even with this metadata. e.g. this fixes `gdb`, but not `perf`.

Currently only implemented for ELF.

8 years agox86inc: Avoid creating unnecessary local labels
Henrik Gramner [Fri, 16 Oct 2015 19:28:49 +0000 (21:28 +0200)]
x86inc: Avoid creating unnecessary local labels

The REP_RET workaround is only needed on old AMD cpus, and the labels clutter
up the symbol table and confuse debugging/profiling tools, so use EQU to
create SHN_ABS symbols instead of creating local labels. Furthermore, skip
the workaround completely in functions that definitely won't run on such cpus.

Note that EQU is just creating a local label when using nasm instead of yasm.
This is probably a bug, but at least it doesn't break anything.

8 years agox86inc: Simplify AUTO_REP_RET
Henrik Gramner [Thu, 15 Oct 2015 15:42:49 +0000 (17:42 +0200)]
x86inc: Simplify AUTO_REP_RET

cpuflags is never undefined any more, it's set to 0 instead.

Also fix an incorrect comment.

8 years agox86inc: Use more consistent indentation
Henrik Gramner [Mon, 12 Oct 2015 19:55:11 +0000 (21:55 +0200)]
x86inc: Use more consistent indentation

8 years agox86inc: Preserve arguments when allocating stack space
Henrik Gramner [Mon, 12 Oct 2015 18:15:18 +0000 (20:15 +0200)]
x86inc: Preserve arguments when allocating stack space

When allocating stack space with a larger alignment than the known stack
alignment a temporary register is used for storing the stack pointer.
Ensure that this isn't one of the registers used for passing arguments.

8 years agox86inc: Improve FMA instruction handling
Henrik Gramner [Sat, 16 Jan 2016 23:25:47 +0000 (00:25 +0100)]
x86inc: Improve FMA instruction handling

 * Correctly handle FMA instructions with memory operands.
 * Print a warning if FMA instructions are used without the correct cpuflag.
 * Simplify the instantiation code.
 * Clarify documentation.

Only the last operand in FMA3 instructions can be a memory operand. When
converting FMA4 instructions to FMA3 instructions we can utilize the fact
that multiply is a commutative operation and reorder operands if necessary
to ensure that a memory operand is used only as the last operand.

8 years agox86inc: Be more verbose in assertion failures
Henrik Gramner [Sun, 11 Oct 2015 20:31:53 +0000 (22:31 +0200)]
x86inc: Be more verbose in assertion failures

8 years agox86/intmath: disable sse av_clip functions when using ICC
James Almer [Thu, 21 Jan 2016 03:02:09 +0000 (00:02 -0300)]
x86/intmath: disable sse av_clip functions when using ICC

It seems to miscompile them

Should fix fate-ra-288 and fate-twinvq

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years agoavfilter/avf_showwaves: color support
Paul B Mahol [Tue, 19 Jan 2016 21:09:55 +0000 (22:09 +0100)]
avfilter/avf_showwaves: color support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agofate: Add test for colorkey
Michael Niedermayer [Thu, 21 Jan 2016 16:11:47 +0000 (17:11 +0100)]
fate: Add test for colorkey

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodiracdec: fix original Dirac Low Delay profile
Rostislav Pehlivanov [Thu, 21 Jan 2016 16:46:41 +0000 (16:46 +0000)]
diracdec: fix original Dirac Low Delay profile

The version structure in the main decoder context was not (and
apparently has never been) populated since it was added.
Still, having VC-2 break the existing Dirac Low Delay mode was odd and
easily avoidable had the specifications authors noticed/cared.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agodirac: add more parse codes from the specifications
Rostislav Pehlivanov [Thu, 21 Jan 2016 16:43:58 +0000 (16:43 +0000)]
dirac: add more parse codes from the specifications

The specs define some more overlapping and some rarely used parse codes
which were missing.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavcodec/diracdsp: use av_clip_uintp2
James Almer [Thu, 21 Jan 2016 16:13:54 +0000 (13:13 -0300)]
avcodec/diracdsp: use av_clip_uintp2

Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years agodirac_parser: add exceptions for Dirac inter parse codes
Rostislav Pehlivanov [Thu, 21 Jan 2016 15:29:28 +0000 (15:29 +0000)]
dirac_parser: add exceptions for Dirac inter parse codes

Forgotten from previous commit.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agocheckasm: add videodsp emulated_edge_mc test.
Ronald S. Bultje [Sun, 17 Jan 2016 21:22:26 +0000 (16:22 -0500)]
checkasm: add videodsp emulated_edge_mc test.

8 years agodirac_parser: Improve parsing and silence pointless warnings
Rostislav Pehlivanov [Thu, 21 Jan 2016 15:14:10 +0000 (15:14 +0000)]
dirac_parser: Improve parsing and silence pointless warnings

The parser scans for "BBCD" to appear in the bitstream which indicate a
parse info header and once that happens, checks if the parse offsets are
sane. Since random BBCD strings might appear in the bitstream the parser
will emit a pointless warning if that happens.

This commit improves parsing by checking for a valid parse code as well
as keeping the original checks for valid parse offsets. The warnings
were removed as they serve no real purpose.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoavcodec/mpegvideo_enc: Check for integer overflow in ff_mpv_reallocate_putbitbuffer()
Michael Niedermayer [Thu, 21 Jan 2016 14:39:43 +0000 (15:39 +0100)]
avcodec/mpegvideo_enc: Check for integer overflow in ff_mpv_reallocate_putbitbuffer()

Fixes assertion failure
Fixes: 6568d187979ce17878b6fe5fbbb89142/signal_sigabrt_7ffff6ae7cb7_7176_564bbc6741bdcf907f5c4e685c9a77a2.mpg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agodiracdec: add support for 12 bit videos
Rostislav Pehlivanov [Thu, 21 Jan 2016 14:44:42 +0000 (14:44 +0000)]
diracdec: add support for 12 bit videos

The DSP lacked a function needed to convert signed to unsigned. This was
ignored when originally adding support and templating for bit depths
greater than 8. The 10 bit function was used for 12 bit pictures and
resulted in an improper conversion.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agodoc/filters: fix afftfilt example
Paul B Mahol [Thu, 21 Jan 2016 13:42:09 +0000 (14:42 +0100)]
doc/filters: fix afftfilt example

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavfilter: add afftfilter
Paul B Mahol [Sat, 16 Jan 2016 14:09:25 +0000 (15:09 +0100)]
avfilter: add afftfilter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years agoavformat/nutenc: implement deinit()
Michael Niedermayer [Thu, 21 Jan 2016 12:07:07 +0000 (13:07 +0100)]
avformat/nutenc: implement deinit()

Should prevent some leaks if header writing fails

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoAAC encoder: check for NaNs/inf in TNS gain
Claudio Freire [Thu, 21 Jan 2016 06:32:49 +0000 (03:32 -0300)]
AAC encoder: check for NaNs/inf in TNS gain

Can happen in cases where's there's zero autocorrelation (pulses),
and it also implies NaN/inf coeffs

8 years agoconfigure: add missing library deps for showcqt_filter
James Almer [Thu, 21 Jan 2016 03:49:02 +0000 (00:49 -0300)]
configure: add missing library deps for showcqt_filter

Signed-off-by: James Almer <jamrial@gmail.com>
8 years agolavf/riff: Support reading vlc's rawvideo fourccs.
Carl Eugen Hoyos [Thu, 21 Jan 2016 02:38:33 +0000 (03:38 +0100)]
lavf/riff: Support reading vlc's rawvideo fourccs.

Reported by Bob, no6b no6b com

8 years agolavf/nut: Add forgotten fourccs for YUV4xxP9.
Carl Eugen Hoyos [Thu, 21 Jan 2016 02:35:49 +0000 (03:35 +0100)]
lavf/nut: Add forgotten fourccs for YUV4xxP9.

8 years agoavformat/avformat: Replace some references to filenames by urls
Michael Niedermayer [Wed, 20 Jan 2016 20:01:08 +0000 (21:01 +0100)]
avformat/avformat: Replace some references to filenames by urls

Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/wmaenc: Check ff_wma_init() for failure
Michael Niedermayer [Thu, 21 Jan 2016 01:38:05 +0000 (02:38 +0100)]
avcodec/wmaenc: Check ff_wma_init() for failure

Fixes null pointer dereference
Fixes: c4faf8280ba366bf00a79d425f2910a8/signal_sigsegv_1f96477_5177_1448ba7e4125faceb966f44ceb69abfa.qcp
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/mpeg12enc: Move high resolution thread check to before initializing threads
Michael Niedermayer [Wed, 20 Jan 2016 23:36:51 +0000 (00:36 +0100)]
avcodec/mpeg12enc: Move high resolution thread check to before initializing threads

Cleaner solution is welcome!

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavc,lavfi: use avutil/thread.h instead of redundant conditional includes
Clément Bœsch [Wed, 20 Jan 2016 20:36:10 +0000 (21:36 +0100)]
lavc,lavfi: use avutil/thread.h instead of redundant conditional includes

This was somehow forgotten in a8bb81a05c519dd3f36cc341e5fb448f6d17fa73.

8 years agoffplay: update docs after previous changes in ffplay mouse behaviour
Vittorio Gambaletta (VittGam) [Tue, 19 Jan 2016 23:17:11 +0000 (00:17 +0100)]
ffplay: update docs after previous changes in ffplay mouse behaviour

Signed-off-by: Vittorio Gambaletta <ffmpeg-dev@vittgam.net>
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years agoavformat/img2dec: Use AVOpenCallback
Michael Niedermayer [Wed, 20 Jan 2016 01:35:56 +0000 (02:35 +0100)]
avformat/img2dec: Use AVOpenCallback

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavcodec/aacenc: Check all coefficients for finiteness
Michael Niedermayer [Wed, 20 Jan 2016 14:05:38 +0000 (15:05 +0100)]
avcodec/aacenc: Check all coefficients for finiteness

This is needed as near infinite values on the input side result in only some
output to be non finite.
Also it may still be insufficient if subsequent computations overflow

Fixes null pointer dereference
Fixes: ae66c0f6c12ac1cd5c2c237031240f57/signal_sigsegv_2618c99_9516_6007026f2185a26d7afea895fbed6e38.ogg
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Reviewed-by: Claudio Freire <klaussfreire@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/avio: Limit url option parsing to the documented cases
Michael Niedermayer [Wed, 20 Jan 2016 08:43:54 +0000 (09:43 +0100)]
avformat/avio: Limit url option parsing to the documented cases

This feature is not know much or used much AFAIK, and it might be helpfull in
exploits.
No specific case is known where it can be used in an exploit though
subsequent commits depend on this commit though

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolavu: add pthread asserts if ASSERT_LEVEL>1
Clément Bœsch [Tue, 22 Dec 2015 19:41:46 +0000 (20:41 +0100)]
lavu: add pthread asserts if ASSERT_LEVEL>1

8 years agoavcodec/wavpackenc: use put_sbits
James Almer [Mon, 18 Jan 2016 21:38:18 +0000 (18:38 -0300)]
avcodec/wavpackenc: use put_sbits

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years agotests/fate/aac: remove unneeded strict arguments from the encoder tests
Rostislav Pehlivanov [Wed, 20 Jan 2016 17:02:51 +0000 (17:02 +0000)]
tests/fate/aac: remove unneeded strict arguments from the encoder tests

Leftover from the experimental flag removal.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoaacenc: remove FAAC-like coder
Rostislav Pehlivanov [Wed, 20 Jan 2016 16:56:53 +0000 (16:56 +0000)]
aacenc: remove FAAC-like coder

Has been marked for removal for over a month and has not been improved
or touched at all since it was implemented.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agoaacenc: mark LTP mode as experimental
Rostislav Pehlivanov [Wed, 20 Jan 2016 16:49:55 +0000 (16:49 +0000)]
aacenc: mark LTP mode as experimental

Too many crashes observed. Can't be helped until the autocorrelation
function is massively checked for sanity.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
8 years agovf_scale: eval, param0 and param1 documentation
Bela Bodecs [Wed, 20 Jan 2016 14:29:13 +0000 (15:29 +0100)]
vf_scale: eval, param0 and param1 documentation

Documentation of eval, param0 and param1 parameters

Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoavformat/img2dec: do not interpret the filename by default if a IO context has been...
Michael Niedermayer [Wed, 20 Jan 2016 10:21:44 +0000 (11:21 +0100)]
avformat/img2dec: do not interpret the filename by default if a IO context has been opened

With this, user applications which use custom IO and have set a IO context will not have
their already opened IO context ignored and glob/seq being interpreted

Comments and tests from maintainers of user apps are welcome!

Liked-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agolibkvazaar: Set frame rate as a rational number
Arttu Ylä-Outinen [Fri, 15 Jan 2016 11:47:10 +0000 (13:47 +0200)]
libkvazaar: Set frame rate as a rational number

Updates libkvazaar to pass the exact frame rate to Kvazaar by setting
the numerator and denominator separately instead of a single floating
point number. The exact frame rate is needed for writing timing info to
the bitstream.

Requires Kvazaar version 0.8.1.

Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
8 years agoavcodec/ass_split: Fix null pointer dereference in ff_ass_style_get()
Michael Niedermayer [Sun, 17 Jan 2016 14:39:11 +0000 (15:39 +0100)]
avcodec/ass_split: Fix null pointer dereference in ff_ass_style_get()

Fixes: 55d71971da50365d542ed14b65565fe1/signal_sigsegv_4765a4_8499_f146af090a94f591d6254515c7700ef5.mkv
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agomov: Add an option to toggle dref opening
Derek Buitenhuis [Fri, 15 Jan 2016 17:03:49 +0000 (17:03 +0000)]
mov: Add an option to toggle dref opening

This feature is mostly only used by NLE software, and is
both of dubious value being enabled by default, and a
possible security risk.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovf_scale: Detecting changes of incoming frame properties and dinamically evaluate...
Bela Bodecs [Mon, 18 Jan 2016 17:44:09 +0000 (18:44 +0100)]
vf_scale: Detecting changes of incoming frame properties and dinamically evaluate width and height expressions

Currently scale filter accepts expressions in its width and height
parameters but evaluates them only once at init and replaces them with
their actual values. Later on, if any parameter of incoming frames
changes - ie those were used in the original size expressions -  then
they new values will not have any affect for width and heigth values.
They remain the same. This patch makes possible that width and height
expressions be evaluated frame-by-frame basis if width/height/sar/format
properties of incoming frame would change. To retain the current
behaviour and not to break any earlier app, a new config parameter has
been introduced. Its name is "eval" and it has two distinct values:
"init" and "frame". The default value is "init".
This feature is very usefull in case of DVBT mpeg-ts streams where SAR
may change time-by-time from 4/3 to 16/9 and vica-versa and the size
remains the same and you want to create a variable sized output with 1/1
SAR.

Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agovf_overlay: handles expression evaluation of frame size change in frame-by-frame...
Bela Bodecs [Tue, 19 Jan 2016 19:22:06 +0000 (20:22 +0100)]
vf_overlay: handles expression evaluation of frame size change in frame-by-frame evalutaion mode

vf_overlay video filter accepts expressions in its parameters. In
'frame-by-frame' evaluation mode it recalculates them regularly, but
incoming video frame size changes did not reflect in their values. So if
you used width or height of any source videos in expressions as
parameters, they stayed on their initial values. This patch corrects
this bug.

Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
Reviewed-by: Paul B Mahol <onemda@gmail.com
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years agoyuv2rgb: Document the color space coefficients
Vittorio Giovara [Tue, 19 Jan 2016 22:12:39 +0000 (23:12 +0100)]
yuv2rgb: Document the color space coefficients

Based on the original documentation found in mpeg2dec (1995).

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>