]> git.sesse.net Git - ffmpeg/log
ffmpeg
9 years agoavcodec/ac3enc: use long long after switch to 64 bit bitrate
Ganesh Ajjanagadde [Sat, 19 Sep 2015 13:57:56 +0000 (09:57 -0400)]
avcodec/ac3enc: use long long after switch to 64 bit bitrate

Commit 7404f3bdb switched bitrate to 64 bits.
This triggers -Wabsolute-value on clang, e.g
http://fate.ffmpeg.org/log.cgi?time=20150917122742&log=compile&slot=x86_64-darwin-clang-3.7-O3.
Therefore, usage of abs is changed to llabs, which is available on all of the platforms.
Unfortunately, LLONG_MAX is not always available, so INT64_MAX is used instead.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/x86/cavsdsp: silence -Wunused-variable on --disable-mmx
Ganesh Ajjanagadde [Sat, 19 Sep 2015 14:34:22 +0000 (10:34 -0400)]
avcodec/x86/cavsdsp: silence -Wunused-variable on --disable-mmx

This silences -Wunused-variable when compiled with --disable-mmx, e.g
http://fate.ffmpeg.org/log.cgi?time=20150919094617&log=compile&slot=x86_64-archlinux-gcc-disable-mmx.
The alternative of header guards will make it far too ugly.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agofate: add chroma position scale test
Christophe Gisquet [Wed, 23 Sep 2015 13:06:02 +0000 (15:06 +0200)]
fate: add chroma position scale test

The sample position is made weird and non-nominal to force catching
such issues as default values or specialized operations hiding
issues in corner cases.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agovf_scale: conditionally override chroma position
Christophe Gisquet [Wed, 23 Sep 2015 13:06:01 +0000 (15:06 +0200)]
vf_scale: conditionally override chroma position

For yuv420p, the chroma position is unilaterally overriden, even
if ffmpeg's command-line explicitly set it. To fix this, override
only if the value is the default one.

Regression since 1515bfb3.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavformat/brstm: fix overflow
Paul B Mahol [Wed, 23 Sep 2015 17:07:48 +0000 (19:07 +0200)]
avformat/brstm: fix overflow

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agoavfilter/vf_chromakey: Add chromakey video filter
Timo Rothenpieler [Wed, 23 Sep 2015 16:06:46 +0000 (18:06 +0200)]
avfilter/vf_chromakey: Add chromakey video filter

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
9 years agoavcodec/aacenctab: Make aac_maxval_cb const
Michael Niedermayer [Wed, 23 Sep 2015 10:46:52 +0000 (12:46 +0200)]
avcodec/aacenctab: Make aac_maxval_cb const

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/libstagefright: fix Stagefright_decode_frame() failing to exit when the sourc...
zylthinking [Wed, 23 Sep 2015 05:01:44 +0000 (13:01 +0800)]
avcodec/libstagefright: fix Stagefright_decode_frame() failing to exit when the source is done

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agodoc/filters.texi: add rubberband documentation
Paul B Mahol [Wed, 23 Sep 2015 07:47:29 +0000 (09:47 +0200)]
doc/filters.texi: add rubberband documentation

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agoavfilter/af_rubberband: rename duplicate option name
Paul B Mahol [Wed, 23 Sep 2015 07:33:52 +0000 (09:33 +0200)]
avfilter/af_rubberband: rename duplicate option name

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agoAAC encoder: tweak rate-distortion logic
Claudio Freire [Wed, 23 Sep 2015 05:13:56 +0000 (02:13 -0300)]
AAC encoder: tweak rate-distortion logic

This patch modifies the encode frame function to
retry encoding the frame when the resulting bit count
is too far off target, but only adjusting lambda
in small, incremental step. It also makes the logic
more conservative - otherwise it will contend with
bit reservoir-related variations in bit allocation,
and result in artifacts when frame have to be truncated
(usually at high bit rates transitioning from low
complexity to high complexity).

9 years agoAAC encoder: simplify and speed up find_min_book
Claudio Freire [Mon, 21 Sep 2015 06:41:26 +0000 (03:41 -0300)]
AAC encoder: simplify and speed up find_min_book

Trivial change to simplify the small but hot
find_min_book function. The new form is easier to
understand and faster.

9 years agoconfigure: Force mingw's ld to keep the reloc section
Alex Smith [Mon, 21 Sep 2015 04:41:36 +0000 (00:41 -0400)]
configure: Force mingw's ld to keep the reloc section

Binutils will always strip the relocation information from executable
files even if it needs it (dynamicbase/ASLR).  We can work around this
by using the pic-executable flag combined with setting the correct entry
point since apparently ld forgets what that should be.  This problem
affects both 32 and 64-bit mingw-w64.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/x86/mpegaudiodsp: silence -Wunused-variable on --disable-mmx
Ganesh Ajjanagadde [Sat, 19 Sep 2015 14:47:38 +0000 (10:47 -0400)]
avcodec/x86/mpegaudiodsp: silence -Wunused-variable on --disable-mmx

This silences -Wunused-variable when compiled with --disable-mmx, e.g
http://fate.ffmpeg.org/log.cgi?time=20150919094617&log=compile&slot=x86_64-archlinux-gcc-disable-mmx.
The alternative of header guards will make it far too ugly.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/x86/rv40dsp_init: silence -Wunused-variable on --disable-mmx
Ganesh Ajjanagadde [Sat, 19 Sep 2015 14:43:37 +0000 (10:43 -0400)]
avcodec/x86/rv40dsp_init: silence -Wunused-variable on --disable-mmx

This silences -Wunused-variable when compiled with --disable-mmx, e.g
http://fate.ffmpeg.org/log.cgi?time=20150919094617&log=compile&slot=x86_64-archlinux-gcc-disable-mmx.
The alternative of header guards will make it far too ugly.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavfilter/hermite: fix "libavfilter/hermite.h:19:15: error: no previous prototype...
Michael Niedermayer [Tue, 22 Sep 2015 21:41:44 +0000 (23:41 +0200)]
avfilter/hermite: fix "libavfilter/hermite.h:19:15: error: no previous prototype for hermite_interpolation"

Fix build

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavfilter: add agate filter
Paul B Mahol [Thu, 17 Sep 2015 09:38:23 +0000 (09:38 +0000)]
avfilter: add agate filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agoavcodec/mpegvideo_enc: Avoid fine lambda steps in VBV retry code when RD is not in use
Michael Niedermayer [Tue, 22 Sep 2015 18:17:40 +0000 (20:17 +0200)]
avcodec/mpegvideo_enc: Avoid fine lambda steps in VBV retry code when RD is not in use

Reduces the number of times the vbv retry code is used and should have no
effect on quality

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agohls: only seek if there is an offset
Andreas Cadhalpun [Tue, 22 Sep 2015 11:40:20 +0000 (13:40 +0200)]
hls: only seek if there is an offset

If there is no #EXT-X-BYTERANGE specified, there is no need to seek.
Seeking fails anyway for rtmp, because this protocol does not support
url_seek.

This fixes CNN.m3u from trac ticket 4797 (i.e. Debian bug #798189).

Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
9 years agoavcodec/dvdsubdec: don't use a NULL log context
wm4 [Tue, 22 Sep 2015 15:40:06 +0000 (17:40 +0200)]
avcodec/dvdsubdec: don't use a NULL log context

9 years agoavcodec/dvdsubdec: reject some broken packets
wm4 [Mon, 21 Sep 2015 16:22:35 +0000 (18:22 +0200)]
avcodec/dvdsubdec: reject some broken packets

If cmd_pos is broken, this would just keep accumulating packets in the
reassembly buffer, until it fails and flushes the buffer on overflow.
Since packets are usually rather small, this will take a lot of subtitle
packets. The perceived effect is that subtitles are not displayed
anymore after the faulty packet was passed to the decoder.

I'm not terribly sure about this, but on the other hand this code is
active only when fragmented packets need to be reassembled.

Fixes sample file in trac issue #4872.

9 years agoavcodec/dvdsub: fix partial packet assembly
wm4 [Mon, 21 Sep 2015 16:16:35 +0000 (18:16 +0200)]
avcodec/dvdsub: fix partial packet assembly

Assuming the first and second packets are partial, this would append the
reassembly buffer (ctx->buf) to itself with the second
append_to_cached_buf() call, because buf is set to ctx->buf.

I do not know a valid sample file which triggers this, and do not know
if packets can be split into more than 2 sub-packets, but it triggered
with a (differently) broken sample file in trac issue #4872.

9 years agoavformat/hls: fix some cases of HLS streams which require cookies
wm4 [Mon, 21 Sep 2015 12:43:06 +0000 (14:43 +0200)]
avformat/hls: fix some cases of HLS streams which require cookies

Broken by commit ba12ba859aabfa7153ba397d869db13acdaba340. This only
happens with HLS streams which use encryption and require preserving
cookies sent by the server.

Fixes trac issue #4846.

9 years agoavfilter: add tremolo filter
Kyle Swanson [Mon, 21 Sep 2015 15:16:43 +0000 (10:16 -0500)]
avfilter: add tremolo filter

Signed-off-by: Kyle Swanson <k@ylo.ph>
9 years agoUpdate my email address
Jean Delvare [Tue, 22 Sep 2015 08:43:27 +0000 (10:43 +0200)]
Update my email address

My old address no longer works.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agohevc: fix wpp threading deadlock.
Ronald S. Bultje [Sun, 20 Sep 2015 10:39:14 +0000 (12:39 +0200)]
hevc: fix wpp threading deadlock.

Fixes ticket 4258.

9 years agovp9: fix loopfilter test code to address Hendrik's comments.
Ronald S. Bultje [Sun, 20 Sep 2015 10:20:39 +0000 (12:20 +0200)]
vp9: fix loopfilter test code to address Hendrik's comments.

(I forgot to actually merge them into the patch I just pushed.)

9 years agox86/vp9dsp: fix local header include
James Almer [Mon, 21 Sep 2015 17:37:32 +0000 (14:37 -0300)]
x86/vp9dsp: fix local header include

Signed-off-by: James Almer <jamrial@gmail.com>
9 years agox86/vp9dsp: add missing header include
James Almer [Mon, 21 Sep 2015 17:34:08 +0000 (14:34 -0300)]
x86/vp9dsp: add missing header include

Fixes make checkheaders

Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoavcodec/dvdsubdec: fix indentation
wm4 [Mon, 21 Sep 2015 11:46:34 +0000 (13:46 +0200)]
avcodec/dvdsubdec: fix indentation

9 years agoavformat/assdec: do not drop duplicate subtitles
wm4 [Mon, 21 Sep 2015 11:44:37 +0000 (13:44 +0200)]
avformat/assdec: do not drop duplicate subtitles

Duplicates are perfectly legitimate with this format. A correct
renderer will typically show them stacked.

9 years agoavformat/vobsub: do not attempt to check duplicate subtitles
wm4 [Mon, 21 Sep 2015 11:43:32 +0000 (13:43 +0200)]
avformat/vobsub: do not attempt to check duplicate subtitles

Some .idx files actually contain duplicate subtitle events:

timestamp: 00:07:52:600, filepos: 00004e800
timestamp: 00:07:52:600, filepos: 00004f800

The second will be dropped, because it has same pts, duration, and text
(the text is just a dummy empty string; the real data is retrieved when
actually reading vobsub subtitle packets).

Dropping this is probably not intended/safe, so avoid it.

See trac issue #4872 for a sample. This patch doesn't fix decoding of
the sample, though.

9 years agoavformat/subtitles: make dropping duplicate events optional
wm4 [Mon, 21 Sep 2015 11:42:48 +0000 (13:42 +0200)]
avformat/subtitles: make dropping duplicate events optional

9 years agoavformat/vobsub: compare correct packet stream IDs
wm4 [Mon, 21 Sep 2015 10:09:08 +0000 (12:09 +0200)]
avformat/vobsub: compare correct packet stream IDs

The stream ID is essentially an arbitrary number defined by the .idx
file headers. They have to match the IDs in the .sub stream. The vobsub
demuxer assumed the IDs would just start from 0, increassing by 1 for
each stream. This is not correct. In the sample I had, the IDs were
starting from 1, leading to no subtitles being displayed at all.

Fix this by using the correct stream ID.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoconfigure: silence error if tput not found
Ganesh Ajjanagadde [Mon, 21 Sep 2015 01:50:17 +0000 (21:50 -0400)]
configure: silence error if tput not found

If tput is not found for colorizing, error message should be squashed.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agodoc: mention libavcodec can decode Opus natively
James Almer [Mon, 21 Sep 2015 02:20:43 +0000 (23:20 -0300)]
doc: mention libavcodec can decode Opus natively

Signed-off-by: James Almer <jamrial@gmail.com>
9 years agompjpeg: CRLF terminating a sequence of MIME headers should not cause an error
Alex Agranovsky [Sat, 12 Sep 2015 23:04:26 +0000 (19:04 -0400)]
mpjpeg: CRLF terminating a sequence of MIME headers should not cause an error

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/snowenc: Do not write into const AVFrame
Michael Niedermayer [Sun, 20 Sep 2015 20:55:15 +0000 (22:55 +0200)]
avcodec/snowenc: Do not write into const AVFrame

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/snowenc: Remove unused new_picture field
Michael Niedermayer [Sun, 20 Sep 2015 20:52:33 +0000 (22:52 +0200)]
avcodec/snowenc: Remove unused new_picture field

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoswscale: fix ticket 4850
Pedro Arthur [Sun, 20 Sep 2015 21:03:49 +0000 (18:03 -0300)]
swscale: fix ticket 4850

9 years agoavdevice/libdc1394: add const to suppress "assignment discards const qualifier from...
Michael Niedermayer [Sun, 20 Sep 2015 20:11:59 +0000 (22:11 +0200)]
avdevice/libdc1394: add const to suppress "assignment discards const qualifier from pointer target type" warnings

See: http://fate.ffmpeg.org/log.cgi?time=20150919100330&log=compile&slot=x86_64-archlinux-gcc-enableshared

Found-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/hevc_mp4toannexb_bsf: silence -Wdiscarded-qualifiers
Ganesh Ajjanagadde [Sun, 20 Sep 2015 13:10:51 +0000 (09:10 -0400)]
avcodec/hevc_mp4toannexb_bsf: silence -Wdiscarded-qualifiers

*poutbuf is non-const, so this casts it explicitly.
This suppresses -Wdiscarded-qualifiers seen in e.g
http://fate.ffmpeg.org/log.cgi?time=20150919100330&log=compile&slot=x86_64-archlinux-gcc-enableshared.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agotests/checkasm: fix stack smash in check_loopfilter
Rodger Combs [Sun, 20 Sep 2015 17:29:32 +0000 (12:29 -0500)]
tests/checkasm: fix stack smash in check_loopfilter

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agolavf/matroska: ignore ChapCountry ID for now
Rodger Combs [Sun, 20 Sep 2015 14:34:05 +0000 (09:34 -0500)]
lavf/matroska: ignore ChapCountry ID for now

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavfilter: add rubberband wrapper
Paul B Mahol [Fri, 18 Sep 2015 20:22:05 +0000 (20:22 +0000)]
avfilter: add rubberband wrapper

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agolavfi: remove FF_LINK_FLAG_REQUEST_LOOP.
Nicolas George [Wed, 26 Aug 2015 10:11:26 +0000 (12:11 +0200)]
lavfi: remove FF_LINK_FLAG_REQUEST_LOOP.

It has no longer any effect.

9 years agolavfi: drop the requirement that request_frame returns a frame.
Nicolas George [Tue, 25 Aug 2015 18:33:48 +0000 (20:33 +0200)]
lavfi: drop the requirement that request_frame returns a frame.

It requires a loop in filters or the framework,
that makes the scheduling less efficient and more complex.
This is purely an internal change since the loop is now
present in buffersink.
Note that no filter except buffersink did rely on the requirement.

9 years agolavfi/vf_idet: reindent after last commit.
Nicolas George [Wed, 26 Aug 2015 10:21:27 +0000 (12:21 +0200)]
lavfi/vf_idet: reindent after last commit.

9 years agolavfi/vf_idet: remove the loop in request_frame().
Nicolas George [Tue, 25 Aug 2015 18:31:50 +0000 (20:31 +0200)]
lavfi/vf_idet: remove the loop in request_frame().

It is not necessary due to the use of FF_LINK_FLAG_REQUEST_LOOP.

9 years agolavfi/buffersink: loop over ff_request_frame().
Nicolas George [Tue, 25 Aug 2015 22:15:22 +0000 (00:15 +0200)]
lavfi/buffersink: loop over ff_request_frame().

Do not assume that ff_request_frame() returning success
implies a frame has arrived in the FIFO.
Instead, just loop until a frame is in the FIFO.
It does not change anything since the same loop is present
in ff_request_frame(), confirmed by an assertion.

9 years agox86/vp9mc: fix string concatenation of fullpel function names
James Almer [Sat, 19 Sep 2015 23:27:03 +0000 (20:27 -0300)]
x86/vp9mc: fix string concatenation of fullpel function names

Fixes compilation with NASM

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoavcodec/internal: Use do {} while() for ff_tlog()
Michael Niedermayer [Sun, 20 Sep 2015 10:55:10 +0000 (12:55 +0200)]
avcodec/internal: Use do {} while() for ff_tlog()

Avoids problems when used without braces

Found-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agotests/checkasm/vp9dsp: Add () to protect macro arguments
Michael Niedermayer [Sun, 20 Sep 2015 09:37:57 +0000 (11:37 +0200)]
tests/checkasm/vp9dsp: Add () to protect macro arguments

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agocheckasm: add VP9 loopfilter tests.
Ronald S. Bultje [Thu, 17 Sep 2015 15:58:10 +0000 (11:58 -0400)]
checkasm: add VP9 loopfilter tests.

The randomize_buffer() implementation assures that "most of the time",
we'll do a good mix of wide16/wide8/hev/regular/no filters for complete
code coverage. However, this is not mathematically assured because that
would make the code either much more complex, or much less random.

9 years agocheckasm: add jpeg2000dsp rct_int tests
James Almer [Fri, 18 Sep 2015 02:53:37 +0000 (23:53 -0300)]
checkasm: add jpeg2000dsp rct_int tests

Reviewed-by: Henrik Gramner <henrik@gramner.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoavcodec/x86/hpeldsp_rnd_template: silence -Wunused-function on --disable-mmx
Ganesh Ajjanagadde [Sat, 19 Sep 2015 15:38:59 +0000 (11:38 -0400)]
avcodec/x86/hpeldsp_rnd_template: silence -Wunused-function on --disable-mmx

This silences some of the -Wunused-function warnings when compiled with --disable-mmx, e.g
http://fate.ffmpeg.org/log.cgi?time=20150919094617&log=compile&slot=x86_64-archlinux-gcc-disable-mmx.
Header guards are too brittle and ugly for this case.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavformat/format: silence -Wdiscarded-qualifiers
Ganesh Ajjanagadde [Sat, 19 Sep 2015 21:37:14 +0000 (17:37 -0400)]
avformat/format: silence -Wdiscarded-qualifiers

lpd.buf is non-const and discards the const qualifier of zerobuffer.
This fixes -Wdiscarded-qualifiers observed with a variety of compilers, including GCC 5.2.
Note that this does not change the type of zerobuffer, and merely makes the intent explicit.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoswscale/output: fix undefined left shifts of negative numbers
Ganesh Ajjanagadde [Sat, 19 Sep 2015 17:10:44 +0000 (13:10 -0400)]
swscale/output: fix undefined left shifts of negative numbers

This fixes -Wshift-negative-value reported with clang 3.7+, e.g
http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/mlpdec: fix a undefined left shift of negative number
Ganesh Ajjanagadde [Sat, 19 Sep 2015 05:06:46 +0000 (01:06 -0400)]
avcodec/mlpdec: fix a undefined left shift of negative number

This fixes a -Wshift-negative-value reported with clang 3.7+, e.g
http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agohevc: properly handle no_rasl_output_flag when removing pictures from the DPB
Hendrik Leppkes [Sat, 12 Sep 2015 19:50:24 +0000 (21:50 +0200)]
hevc: properly handle no_rasl_output_flag when removing pictures from the DPB

Fixes ticket #4185.

Reviewed-By: Mickael Raulet <Mickael.Raulet@insa-rennes.fr>
Signed-off-by: Hendrik Leppkes <h.leppkes@gmail.com>
9 years agoavcodec/motion_est_template: fix undefined left shift of negative number
Ganesh Ajjanagadde [Sat, 19 Sep 2015 17:18:16 +0000 (13:18 -0400)]
avcodec/motion_est_template: fix undefined left shift of negative number

This fixes -Wshift-negative-value reported with clang 3.7+, e.g
http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavresample/resample: remove unused variable
Ganesh Ajjanagadde [Sat, 19 Sep 2015 17:26:35 +0000 (13:26 -0400)]
avresample/resample: remove unused variable

This fixes a -Wunused-variable, see e.g
http://fate.ffmpeg.org/log.cgi?time=20150919162338&log=compile&slot=x86_64-archlinux-gcc-threads.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/x86/mpegvideoenc: silence -Wunused-function on --disable-mmx
Ganesh Ajjanagadde [Sat, 19 Sep 2015 15:00:50 +0000 (11:00 -0400)]
avcodec/x86/mpegvideoenc: silence -Wunused-function on --disable-mmx

This silences -Wunused-function when compiled with --disable-mmx, e.g
http://fate.ffmpeg.org/log.cgi?time=20150919094617&log=compile&slot=x86_64-archlinux-gcc-disable-mmx.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/x86/hpeldsp_init: silence -Wunused-function on --disable-mmx
Ganesh Ajjanagadde [Sat, 19 Sep 2015 15:39:37 +0000 (11:39 -0400)]
avcodec/x86/hpeldsp_init: silence -Wunused-function on --disable-mmx

This silences some of the -Wunused-function warnings when compiled with --disable-mmx, e.g
http://fate.ffmpeg.org/log.cgi?time=20150919094617&log=compile&slot=x86_64-archlinux-gcc-disable-mmx.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agodoc/filters: fix typo in eq contrast option
Lou Logan [Sat, 19 Sep 2015 20:29:15 +0000 (12:29 -0800)]
doc/filters: fix typo in eq contrast option

Fixes ticket #4866.

Signed-off-by: Lou Logan <lou@lrcd.com>
9 years agocmdutils: Filter dst/srcw/h
Michael Niedermayer [Sat, 19 Sep 2015 19:23:11 +0000 (21:23 +0200)]
cmdutils: Filter dst/srcw/h

Dimensions / pixel formats for scaling must be set through the -s / pix_fmt options
or the scale / format filters. Otherwise there are mismatches between whet is
in/output to the scaler and for what the scaler is configured

Fixes Ticket4856

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavformat/flvdec: Detect broken sizes (OBS 0.655b), disable resync for affected files
Michael Niedermayer [Sat, 19 Sep 2015 16:22:31 +0000 (18:22 +0200)]
avformat/flvdec: Detect broken sizes (OBS 0.655b), disable resync for affected files

Fixes Ticket4867
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/imgconvert: Support non-planar colorspaces while padding
Przemysław Sobala [Fri, 18 Sep 2015 13:40:58 +0000 (15:40 +0200)]
avcodec/imgconvert: Support non-planar colorspaces while padding

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agox86/vp9dsp: add missing preprocessor guards
James Almer [Sat, 19 Sep 2015 16:33:53 +0000 (13:33 -0300)]
x86/vp9dsp: add missing preprocessor guards

Signed-off-by: James Almer <jamrial@gmail.com>
9 years agolpc: correctly apply windowing to the samples in the float-only lpc
Rostislav Pehlivanov [Sat, 19 Sep 2015 15:25:58 +0000 (16:25 +0100)]
lpc: correctly apply windowing to the samples in the float-only lpc

Also change the window to Hamming (using coefficient which make it
a Hanning).

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
9 years agoavcodec/dcadec: fix a -Wsometimes-unitialized on clang
Ganesh Ajjanagadde [Sat, 19 Sep 2015 05:00:42 +0000 (01:00 -0400)]
avcodec/dcadec: fix a -Wsometimes-unitialized on clang

This fixes a genuine -Wsometimes-unitialized reported on clang, e.g
http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/g723_1: fix a undefined left shift of negative number
Ganesh Ajjanagadde [Sat, 19 Sep 2015 04:57:24 +0000 (00:57 -0400)]
avcodec/g723_1: fix a undefined left shift of negative number

This fixes a -Wshift-negative-value reported with clang 3.7+, e.g
http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/internal: silence -Wempty-body on clang
Ganesh Ajjanagadde [Sat, 19 Sep 2015 04:55:18 +0000 (00:55 -0400)]
avcodec/internal: silence -Wempty-body on clang

This silences a -Wempty-body warning on clang 3.7+, e.g
http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/indeo3data: fix undefined left shift of negative number
Ganesh Ajjanagadde [Sat, 19 Sep 2015 05:43:39 +0000 (02:43 -0300)]
avcodec/indeo3data: fix undefined left shift of negative number

This fixes a whole sea of -Wshift-negative-value reported with clang 3.7+, e.g
http://fate.ffmpeg.org/log.cgi?time=20150918181527&log=compile&slot=x86_64-darwin-clang-polly-vectorize-stripmine-3.7.
Any half decent compiler should anyway optimize away the multiplication.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoAAC encoder: fix make checkheaders
Claudio Freire [Fri, 18 Sep 2015 21:38:54 +0000 (18:38 -0300)]
AAC encoder: fix make checkheaders

With the move of some functions into templates
in aaccoder_twoloop.h and aaccoder_trellis.h,
make checkheaders started failing. Add them to
SKIPHEADERS as should be.

9 years agoavdevice/xcbgrab: fix -Wunused-variable
Ganesh Ajjanagadde [Fri, 18 Sep 2015 22:17:42 +0000 (18:17 -0400)]
avdevice/xcbgrab: fix -Wunused-variable

This patch fixes a -Wunused-variable reported in e.g
http://fate.ffmpeg.org/log.cgi?time=20150918194649&log=compile&slot=x86_64-debian-asan-144800.
av_unused is used as opposed to a header guard for readability.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoffserver: remove useless assignment leftover
Reynaldo H. Verdejo Pinochet [Fri, 18 Sep 2015 22:41:55 +0000 (15:41 -0700)]
ffserver: remove useless assignment leftover

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
9 years agoffserver: break early on _parse_acl_row()
Reynaldo H. Verdejo Pinochet [Fri, 18 Sep 2015 22:32:39 +0000 (15:32 -0700)]
ffserver: break early on _parse_acl_row()

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
9 years agoffserver: explicitly free() duped filename
Reynaldo H. Verdejo Pinochet [Fri, 18 Sep 2015 22:03:34 +0000 (15:03 -0700)]
ffserver: explicitly free() duped filename

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
9 years agoffserver: start dropping all unneededly harcoded str lengths
Reynaldo H. Verdejo Pinochet [Mon, 14 Sep 2015 21:53:18 +0000 (14:53 -0700)]
ffserver: start dropping all unneededly harcoded str lengths

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
9 years agolibswscale/swscale: fix -Wunused-function
Ganesh Ajjanagadde [Fri, 18 Sep 2015 20:35:33 +0000 (16:35 -0400)]
libswscale/swscale: fix -Wunused-function

hyscale, hcscale are only used in old filter code, hence place
header guard to silence -Wunused-function.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoall: do standards compliant absdiff computation
Ganesh Ajjanagadde [Wed, 16 Sep 2015 18:48:16 +0000 (14:48 -0400)]
all: do standards compliant absdiff computation

This resolves implementation defined behavior, and also silences -Wabsolute-value in clang 3.5+.
Moreover, the generated asm is identical to before modulo nop padding.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agox86/vp9mc: add missing preprocessor guards
James Almer [Fri, 18 Sep 2015 18:14:53 +0000 (15:14 -0300)]
x86/vp9mc: add missing preprocessor guards

Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoavfilter/avf_showcqt: use frequency domain windowing
Muhammad Faiz [Wed, 16 Sep 2015 08:24:23 +0000 (15:24 +0700)]
avfilter/avf_showcqt: use frequency domain windowing

faster initialization and less code
slightly different result computationally from previous
coeffclamp option is ignored

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavutil/attributes: add AV_GCC_VERSION_AT_MOST
James Almer [Fri, 18 Sep 2015 04:00:43 +0000 (01:00 -0300)]
avutil/attributes: add AV_GCC_VERSION_AT_MOST

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agox86/vp9: add avx2 subpel MC SIMD for 10/12bpp
James Almer [Fri, 18 Sep 2015 01:49:58 +0000 (22:49 -0300)]
x86/vp9: add avx2 subpel MC SIMD for 10/12bpp

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoavfilter/vf_colorkey: Improve filter description
Timo Rothenpieler [Fri, 18 Sep 2015 12:47:59 +0000 (14:47 +0200)]
avfilter/vf_colorkey: Improve filter description

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
9 years agoChangelog: add forgotten entry
Paul B Mahol [Thu, 17 Sep 2015 21:16:51 +0000 (21:16 +0000)]
Changelog: add forgotten entry

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agoavcodec/dcaenc: fix lfe fir coefficients
Paul B Mahol [Thu, 17 Sep 2015 21:13:37 +0000 (21:13 +0000)]
avcodec/dcaenc: fix lfe fir coefficients

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agoavcodec/mpeg12enc: Basic support for encoding non even QPs for -non_linear_quant 1
Michael Niedermayer [Thu, 17 Sep 2015 22:37:28 +0000 (00:37 +0200)]
avcodec/mpeg12enc: Basic support for encoding non even QPs for -non_linear_quant 1

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/mpeg12dec: Move non_linear_qscale to mpegvideodata
Michael Niedermayer [Thu, 17 Sep 2015 22:35:28 +0000 (00:35 +0200)]
avcodec/mpeg12dec: Move non_linear_qscale to mpegvideodata

This will be used in the next commit

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/mpegvideo: Change mpeg2 unquant to work with higher precission qscale
Michael Niedermayer [Thu, 17 Sep 2015 21:47:06 +0000 (23:47 +0200)]
avcodec/mpegvideo: Change mpeg2 unquant to work with higher precission qscale

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/mpegvideo_enc: Add missing entry to non_linear_qscale table
Michael Niedermayer [Thu, 17 Sep 2015 19:37:27 +0000 (21:37 +0200)]
avcodec/mpegvideo_enc: Add missing entry to non_linear_qscale table

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agoavcodec/dcaenc: unbreak >4 channel support
Paul B Mahol [Thu, 17 Sep 2015 19:13:52 +0000 (19:13 +0000)]
avcodec/dcaenc: unbreak >4 channel support

LFE channel is still broken, search for FIXME.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agocheckasm: add flacdsp decorrelate tests
James Almer [Thu, 17 Sep 2015 18:22:25 +0000 (15:22 -0300)]
checkasm: add flacdsp decorrelate tests

Reviewed-by: Henrik Gramner <henrik@gramner.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agoavutil/log: fix zero length gnu_printf format string warning
Ganesh Ajjanagadde [Thu, 17 Sep 2015 12:11:39 +0000 (08:11 -0400)]
avutil/log: fix zero length gnu_printf format string warning

This should fix warning reported by fate client:
http://fate.ffmpeg.org/report.cgi?time=20150917113121&slot=x86_32-linux-gnu-gcc-4.5.1-have_6regs.
Untested.

Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years agolavf/utils: remove some left-over cruft from the 32-bit size fields
Hendrik Leppkes [Thu, 17 Sep 2015 14:54:00 +0000 (16:54 +0200)]
lavf/utils: remove some left-over cruft from the 32-bit size fields

9 years agolavc/lavf: remove incompatible abi checks for the new 64bit fields
James Almer [Wed, 16 Sep 2015 04:46:50 +0000 (01:46 -0300)]
lavc/lavf: remove incompatible abi checks for the new 64bit fields

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agodoc/filters: showfreqs: fix typo
Paul B Mahol [Thu, 17 Sep 2015 14:12:33 +0000 (14:12 +0000)]
doc/filters: showfreqs: fix typo

Fixes #4863

Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years agoavcodec/mips/aaccoder_mips: Remove duplicate include
Michael Niedermayer [Thu, 17 Sep 2015 11:39:14 +0000 (13:39 +0200)]
avcodec/mips/aaccoder_mips: Remove duplicate include

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