ffmpeg.git
5 years agoavcodec/libvpxdec: don't check for formats other than i420 when vp9 decoding is disabled
James Almer [Tue, 23 Sep 2014 22:30:58 +0000 (19:30 -0300)]
avcodec/libvpxdec: don't check for formats other than i420 when vp9 decoding is disabled

Should fix ticket #3958.

Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
5 years agotests/fate-run.sh: Cat .err file in case of error with V>0
Michael Niedermayer [Tue, 23 Sep 2014 21:38:29 +0000 (23:38 +0200)]
tests/fate-run.sh: Cat .err file in case of error with V>0

This may make fate failures where only the console output is available
easier to analyze

Suggested-by: Andreas Cadhalpun
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoSkip decklink_common_c.h when running make checkheaders.
Carl Eugen Hoyos [Tue, 23 Sep 2014 20:51:36 +0000 (22:51 +0200)]
Skip decklink_common_c.h when running make checkheaders.

5 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Tue, 23 Sep 2014 20:09:50 +0000 (22:09 +0200)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: move pts calculating code to generic decoder
  ffplay: factorize decoder functions to generic decoder
  ffplay: handle fullscreen status on resize event

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoFix compile error on arm4/arm5 platform
Bernd Kuhls [Tue, 23 Sep 2014 18:10:03 +0000 (20:10 +0200)]
Fix compile error on arm4/arm5 platform

Since these commits
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=adf8227cf4e7b4fccb2ad88e1e09b6dc00dd00ed
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=db7f1c7c5a1d37e7f4da64a79a97bea1c4b6e9f8

compilation on arm4/arm5 fails:

libavcodec/libavcodec.so: undefined reference to
`ff_startcode_find_candidate_armv6'

Because libavcodec/arm/Makefile contains
ARMV6-OBJS-$(CONFIG_STARTCODE)         += arm/startcode_armv6.o
function ff_startcode_find_candidate_armv6 is not included for older ARM
archs. The bug was found during automatic buildroot builds:

http://autobuild.buildroot.net/results/ec7/ec71e4f16ee9106747dff5f15999cbd17903e76f//build-end.log
Quote from configure summary:
ARCH                      arm (armv4t)
big-endian                no
runtime cpu detection     yes
ARMv5TE enabled           no
ARMv6 enabled             no
ARMv6T2 enabled           no

http://autobuild.buildroot.net/results/be7/be72eb182eaccf0064a32c9dfc2ac1c0d6555506/build-end.log
ARCH                      arm (armv5te)
big-endian                no
runtime cpu detection     yes
ARMv5TE enabled           yes
ARMv6 enabled             no
ARMv6T2 enabled           no

This patch provides the necessary #if clauses as discussed with Michael:
https://ffmpeg.org/pipermail/ffmpeg-devel/2014-September/163329.html

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoffplay: move pts calculating code to generic decoder
Marton Balint [Wed, 3 Sep 2014 23:59:34 +0000 (01:59 +0200)]
ffplay: move pts calculating code to generic decoder

Signed-off-by: Marton Balint <cus@passwd.hu>
5 years agoffplay: factorize decoder functions to generic decoder
Marton Balint [Sat, 13 Jul 2013 13:16:15 +0000 (15:16 +0200)]
ffplay: factorize decoder functions to generic decoder

Signed-off-by: Marton Balint <cus@passwd.hu>
5 years agoffplay: handle fullscreen status on resize event
Marton Balint [Mon, 22 Sep 2014 20:17:06 +0000 (22:17 +0200)]
ffplay: handle fullscreen status on resize event

In some cases resize events can happen even during fullscreen, so let's pass
the proper flag to SDL_SetVideoMode.

Fixes ticket #3964.

Reported-by: Jeff Dwork <jeff@reggie.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
5 years agoavformat/riffenc: Filter out "BottomUp" in ff_put_bmp_header()
Benoit Fouet [Tue, 23 Sep 2014 08:07:10 +0000 (10:07 +0200)]
avformat/riffenc: Filter out "BottomUp" in ff_put_bmp_header()

Fixes Ticket1304

Commit message and extradata size bugfix by commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/webp: fix default palette color 0xff000000 -> 0x00000000
Pascal Massimino [Mon, 22 Sep 2014 21:48:57 +0000 (14:48 -0700)]
avcodec/webp: fix default palette color 0xff000000 -> 0x00000000

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/asvenc: fix AAN scaling
Michael Niedermayer [Tue, 23 Sep 2014 13:55:24 +0000 (15:55 +0200)]
avcodec/asvenc: fix AAN scaling

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/asvenc: Fix integer overflow in level
Michael Niedermayer [Tue, 23 Sep 2014 13:46:52 +0000 (15:46 +0200)]
avcodec/asvenc: Fix integer overflow in level

Warn if the qscale is too low for the input data and clip levels to
minimize artifacts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86/vp9: add AVX and AVX2 MC
James Almer [Tue, 23 Sep 2014 00:55:13 +0000 (21:55 -0300)]
x86/vp9: add AVX and AVX2 MC

Roughly 25% faster MC than ssse3 for blocksizes 32 and 64.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoffmpeg: replace impossible dts/pts combinations by a reasonable guess instead of...
Michael Niedermayer [Mon, 22 Sep 2014 23:06:30 +0000 (01:06 +0200)]
ffmpeg: replace impossible dts/pts combinations by a reasonable guess instead of hard failing

Fixes stream copy from tserror270.ts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodoc/decoders: adding documentation for lavc/dvdsubdec.c option "forced_subs_only"
Nicholas Robbins [Mon, 22 Sep 2014 19:31:35 +0000 (15:31 -0400)]
doc/decoders: adding documentation for lavc/dvdsubdec.c option "forced_subs_only"

Signed-off-by: Nicholas Robbins <nickrobbins@yahoo.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolibavcodec/dvdsubdec: Add option forced_subs_only to only decode forced subtitle...
Nicholas Robbins [Sat, 20 Sep 2014 11:53:44 +0000 (07:53 -0400)]
libavcodec/dvdsubdec: Add option forced_subs_only to only decode forced subtitle frames.

Signed-off-by: Nicholas Robbins <nickrobbins@yahoo.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/asfenc: Make asf_write_indexs index argument const
Michael Niedermayer [Mon, 22 Sep 2014 16:53:44 +0000 (18:53 +0200)]
avformat/asfenc: Make asf_write_indexs index argument const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/adtsenc: buf isnt changed in adts_decode_extradata(), make it const
Michael Niedermayer [Mon, 22 Sep 2014 16:47:14 +0000 (18:47 +0200)]
avformat/adtsenc: buf isnt changed in adts_decode_extradata(), make it const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/4xm: Make src of decode_p_block() const
Michael Niedermayer [Mon, 22 Sep 2014 16:09:28 +0000 (18:09 +0200)]
avcodec/4xm: Make src of decode_p_block() const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/snow: Make block argumrnt of ff_snow_pred_block() const
Michael Niedermayer [Mon, 22 Sep 2014 16:06:56 +0000 (18:06 +0200)]
avcodec/snow: Make block argumrnt of ff_snow_pred_block() const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostproc/postprocess_template: mark unchanged function arguments const
Michael Niedermayer [Mon, 22 Sep 2014 15:49:55 +0000 (17:49 +0200)]
postproc/postprocess_template: mark unchanged function arguments const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostprocess: prefetch* dont change anything, thus their arguments should be const
Michael Niedermayer [Mon, 22 Sep 2014 15:42:10 +0000 (17:42 +0200)]
postprocess: prefetch* dont change anything, thus their arguments should be const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoRevert "configure: Refactor setting of feature test macro _XOPEN_SOURCE"
Michael Niedermayer [Mon, 22 Sep 2014 15:05:55 +0000 (17:05 +0200)]
Revert "configure: Refactor setting of feature test macro _XOPEN_SOURCE"

This fixes build on netbsd and probably other bsd based Platforms

This reverts commit 56b8d106769c5c5f9174dcc426f1ee2f991428b1.

5 years agoAdd missing entry for maintainer of rtpenc_hevc.*
Thomas Volkert [Mon, 22 Sep 2014 11:07:10 +0000 (13:07 +0200)]
Add missing entry for maintainer of rtpenc_hevc.*

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/avidec: ensure that palette does not contain the BottomUp info.
Benoit Fouet [Mon, 22 Sep 2014 07:57:37 +0000 (09:57 +0200)]
avformat/avidec: ensure that palette does not contain the BottomUp info.

Considering the palette is located at the end of extradata may be flawed
when the extradata contains the palette followed by the BottomUp field.
When the BottomUp field is present, exclude it from the palette.
Fixes part of ticket #1304

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/img2: remove useless 'pix' duplicated entry.
Benoit Fouet [Fri, 12 Sep 2014 14:37:26 +0000 (16:37 +0200)]
avformat/img2: remove useless 'pix' duplicated entry.

The second entry will never be selected, so let's save some bytes in the
library.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agortpenc_h263_rfc2190: avoid misleading error output
Thomas Volkert [Sun, 21 Sep 2014 15:43:16 +0000 (17:43 +0200)]
rtpenc_h263_rfc2190: avoid misleading error output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavdevice/version: bump minor for the decklink input
Michael Niedermayer [Mon, 22 Sep 2014 01:25:22 +0000 (03:25 +0200)]
avdevice/version: bump minor for the decklink input

Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavdevice: add decklink input support
Deti Fliegl [Mon, 22 Sep 2014 00:46:03 +0000 (02:46 +0200)]
avdevice: add decklink input support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavdevice/decklink: move general code of decklink encoder to common file
Deti Fliegl [Sun, 21 Sep 2014 23:39:50 +0000 (01:39 +0200)]
avdevice/decklink: move general code of decklink encoder to common file

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoconfigure: Refactor setting of feature test macro _XOPEN_SOURCE
Jörg Krause [Sun, 21 Sep 2014 20:48:01 +0000 (22:48 +0200)]
configure: Refactor setting of feature test macro _XOPEN_SOURCE

Some C libraries, eg glibc, uclibc, and musl, uses feature test macros
to expose definitions conforming to the standards ISO C, POSIX and
extensions. According to which feature test macros are defined by the
user or the compiler, a header file, eg <features.h>, used by these
libraries internally defines various other macros.

glibc and uclibc also defines release test macros, eg __GLIBC__ and
__UCLIBC__ in <features.h>. musl does not have (and does not want) a
macro __MUSL__. Therefore it is not possible to check for the musl
library.

However, building FFmpeg with musl needs the feature test macro
_XOPEN_SOURCE=600 to be defined.

Signed-off-by: Jörg Krause <jkrause@posteo.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolavu/bprint: add const to av_bprint_is_complete() argument.
Nicolas George [Sun, 21 Sep 2014 17:03:33 +0000 (19:03 +0200)]
lavu/bprint: add const to av_bprint_is_complete() argument.

5 years agoavformat/assenc: mux all extradata at once
Clément Bœsch [Sat, 20 Sep 2014 16:39:58 +0000 (18:39 +0200)]
avformat/assenc: mux all extradata at once

Before this commit, the code was muxing up to the 2nd line after
"[Events]" (assuming it to be the "Format:" line). The remaining are
generally "Comment:" directives which can stay in that place. mkvextract
behaves that way so it seems there is no reason for that extra
complexity.

5 years agoavformat/assenc: return correct error code
Clément Bœsch [Sat, 20 Sep 2014 19:39:57 +0000 (21:39 +0200)]
avformat/assenc: return correct error code

5 years agoavcodec/webvttdec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 20:20:05 +0000 (22:20 +0200)]
avcodec/webvttdec: add some memory checks

5 years agoavcodec/textdec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 20:18:50 +0000 (22:18 +0200)]
avcodec/textdec: add some memory checks

5 years agoavcodec/subviewerdec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 20:17:29 +0000 (22:17 +0200)]
avcodec/subviewerdec: add some memory checks

5 years agoavcodec/srtdec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 20:14:11 +0000 (22:14 +0200)]
avcodec/srtdec: add some memory checks

5 years agoavcodec/samidec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 20:11:34 +0000 (22:11 +0200)]
avcodec/samidec: add some memory checks

5 years agoavcodec/realtextdec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 20:11:45 +0000 (22:11 +0200)]
avcodec/realtextdec: add some memory checks

5 years agoavcodec/mpl2dec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 20:02:26 +0000 (22:02 +0200)]
avcodec/mpl2dec: add some memory checks

5 years agoavcodec/movtextdec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 20:00:21 +0000 (22:00 +0200)]
avcodec/movtextdec: add some memory checks

5 years agoavcodec/microdvddec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 19:58:27 +0000 (21:58 +0200)]
avcodec/microdvddec: add some memory checks

5 years agoavcodec/jacosubdec: add some memory checks
Clément Bœsch [Sat, 20 Sep 2014 19:48:13 +0000 (21:48 +0200)]
avcodec/jacosubdec: add some memory checks

5 years agoavcodec/ass: add ff_ass_add_rect_bprint() helper
Clément Bœsch [Sun, 21 Sep 2014 16:36:11 +0000 (18:36 +0200)]
avcodec/ass: add ff_ass_add_rect_bprint() helper

5 years agortpdec_hevc: do not print an error message if the received packet has a valid header...
Thomas Volkert [Sun, 21 Sep 2014 11:50:12 +0000 (13:50 +0200)]
rtpdec_hevc: do not print an error message if the received packet has a valid header but lacks additional bytes as payload

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/mp3dec: avoid early EOF with concatenated gapless mp3s
wm4 [Sun, 21 Sep 2014 10:51:41 +0000 (12:51 +0200)]
avformat/mp3dec: avoid early EOF with concatenated gapless mp3s

Consider a file created with something like:

    cat file1.mp3 file2.mp3 > result.mp3

Then if file2.mp3 has gapless information, result.mp3 would stop playing
something in the middle. This happens because the gapless info directs
the decoder to discard all samples after a certain position. To make
matters worse, the gapless info of file2.mp3 will be used when playing
the file1.mp3 part, because the gapless info is located at the end of
the file.

While handling concatenated gapless files correctly would be insane and
a lot of effort (especially without scanning the whole file on opening),
it's easy to prevent at least early EOF. Playback will happen to work,
even if it's slightly broken.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agomlpdec: support TrueHD streams with an Atmos substream
Hendrik Leppkes [Sun, 21 Sep 2014 00:29:28 +0000 (02:29 +0200)]
mlpdec: support TrueHD streams with an Atmos substream

The fourth substream is being discarded, since its not raw audio data,
but an encoded Atmos stream which needs a specialized decoder.

Fixes decoding of the true hd stream from Transformers\ -\ Age\ of\ Extinction\ 2014\ 1080P-003.mkv

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agomlpdec: support major sync headers with optional extension blocks
Hendrik Leppkes [Sun, 21 Sep 2014 00:29:27 +0000 (02:29 +0200)]
mlpdec: support major sync headers with optional extension blocks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agortpenc: HEVC/H.265 support
Thomas Volkert [Sun, 21 Sep 2014 10:10:42 +0000 (12:10 +0200)]
rtpenc: HEVC/H.265 support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavfilter/vf_scale: Allow chroma samples to be above and to the left of luma samples
Michael Niedermayer [Sun, 21 Sep 2014 10:12:50 +0000 (12:12 +0200)]
avfilter/vf_scale: Allow chroma samples to be above and to the left of luma samples

Found-by: Kierank
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoswscale: Allow chroma samples to be above and to the left of luma samples
Michael Niedermayer [Sun, 21 Sep 2014 10:12:50 +0000 (12:12 +0200)]
swscale: Allow chroma samples to be above and to the left of luma samples

Found-by: Kierank
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '103391ca90b2f7c56ae756d76c76f7c3dfa28dd4'
Michael Niedermayer [Sun, 21 Sep 2014 09:50:41 +0000 (11:50 +0200)]
Merge commit '103391ca90b2f7c56ae756d76c76f7c3dfa28dd4'

* commit '103391ca90b2f7c56ae756d76c76f7c3dfa28dd4':
  dca: Remove some commented-out cruft

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/alacenc: Remove unused variable
Michael Niedermayer [Sat, 20 Sep 2014 21:54:00 +0000 (23:54 +0200)]
avcodec/alacenc: Remove unused variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoalacenc: remove unneeded masking
Christophe Gisquet [Sat, 20 Sep 2014 18:23:09 +0000 (18:23 +0000)]
alacenc: remove unneeded masking

The extra bits have already been masked, so this was not doing anything.

Noticed-by: Justin Ruggles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoalacenc: fix incorrect buffer use
Christophe Gisquet [Sat, 20 Sep 2014 18:23:08 +0000 (18:23 +0000)]
alacenc: fix incorrect buffer use

The issue lies in actually dead code ("for now it's not used").

Noticed-by: Justin Ruggles
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/mp3dec: fix gapless audio support
wm4 [Sat, 20 Sep 2014 11:48:05 +0000 (13:48 +0200)]
avformat/mp3dec: fix gapless audio support

The code already had skipping of initial padding, but discarding
trailing frame padding was missing.

This is somewhat questionable, because it will make the decoder discard
any data after the declared file size in the LAME header. But note that
skipping full frames at the end of the stream is required. Encoders
actually create such files.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodca: Remove some commented-out cruft
Diego Biurrun [Fri, 19 Sep 2014 22:21:12 +0000 (00:21 +0200)]
dca: Remove some commented-out cruft

5 years agoavfilter/idet: typo fix: PROGRSSIVE -> PROGRESSIVE
Pascal Massimino [Fri, 19 Sep 2014 12:52:55 +0000 (05:52 -0700)]
avfilter/idet: typo fix: PROGRSSIVE -> PROGRESSIVE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86/me_cmp: port mmxext vsad functions to yasm
James Almer [Fri, 19 Sep 2014 22:16:45 +0000 (19:16 -0300)]
x86/me_cmp: port mmxext vsad functions to yasm

Also add mmxext versions of vsad8 and vsad_intra8, and sse2 versions of
vsad16 and vsad_intra16.
Since vsad8 and vsad16 are not bitexact, they are accordingly marked as
approximate.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoavcodec/dvdsubdec: fix VD/SD identifier name
Michael Niedermayer [Fri, 19 Sep 2014 21:46:06 +0000 (23:46 +0200)]
avcodec/dvdsubdec: fix VD/SD identifier name

Found-by: Nicholas Robbins <nickrobbins-at-yahoo.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/os_support: Add _DEFAULT_SOURCE to hide warning about _SVID_SOURCE depreciation
Daniel Bomar [Fri, 19 Sep 2014 19:56:00 +0000 (14:56 -0500)]
avformat/os_support: Add _DEFAULT_SOURCE to hide warning about _SVID_SOURCE depreciation

As suggested, this just adds _DEFAULT_SOURCE while preserving
_SVID_SOURCE for whatever old systems still need it.

Signed-off-by: Daniel Bomar <dbdaniel42@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agotests/utils: make arguments const that arent changed
Michael Niedermayer [Fri, 19 Sep 2014 17:05:02 +0000 (19:05 +0200)]
tests/utils: make arguments const that arent changed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/dv_profile: deprecate internal function that shouldn't be public
James Almer [Fri, 19 Sep 2014 04:44:42 +0000 (01:44 -0300)]
avcodec/dv_profile: deprecate internal function that shouldn't be public

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
5 years agopostproc/postprocess: Avoid some ifs in do_a_deblock_C()
Michael Niedermayer [Fri, 19 Sep 2014 15:00:15 +0000 (17:00 +0200)]
postproc/postprocess: Avoid some ifs in do_a_deblock_C()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolibavcodec/webp: treat out-of-bound palette index as translucent black
Pascal Massimino [Tue, 16 Sep 2014 15:01:07 +0000 (17:01 +0200)]
libavcodec/webp: treat out-of-bound palette index as translucent black

See https://code.google.com/p/webp/issues/detail?id=206
for a description of the problem/fix.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This patch makes the decoder follow the recommendation of the spec.
There is some disagreement (see "[FFmpeg-devel] [PATCH]: libavcodec/webp")
about what would be best to be written in the spec, so in case the spec
is changed again, this potentially would need to be amended or reverted

5 years agoavcodec/libilbc: support for latest git of libilbc
Gianluigi Tiesi [Fri, 19 Sep 2014 02:49:36 +0000 (04:49 +0200)]
avcodec/libilbc: support for latest git of libilbc

in the latest git commits of libilbc developers removed WebRtc_xxx typedefs

This commit uses int types instead,
it's safe to apply also for previous versions since
WebRtc_Word16 was always a typedef of int16_t and
WebRtc_UWord16 a typedef of uint16_t

Reviewed-by: Timothy Gu <timothygu99@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostproc: Replace CLIP by av_clip_uint8
Michael Niedermayer [Fri, 19 Sep 2014 00:52:14 +0000 (02:52 +0200)]
postproc: Replace CLIP by av_clip_uint8

drop "#define CLIP av_clip_uint8"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostproc/postprocess: remove redundant casts
Michael Niedermayer [Thu, 18 Sep 2014 19:11:37 +0000 (21:11 +0200)]
postproc/postprocess: remove redundant casts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostproc/postprocess: Use FF_ARRAY_ELEMS() in pp_free_context() instead of hard-codin...
Michael Niedermayer [Thu, 18 Sep 2014 19:10:18 +0000 (21:10 +0200)]
postproc/postprocess: Use FF_ARRAY_ELEMS() in pp_free_context() instead of hard-coding their size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostproc/postprocess: Remove unused argument from reallocAlign()
Michael Niedermayer [Thu, 18 Sep 2014 19:08:44 +0000 (21:08 +0200)]
postproc/postprocess: Remove unused argument from reallocAlign()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge branch 'postprocwork'
Michael Niedermayer [Thu, 18 Sep 2014 12:46:40 +0000 (14:46 +0200)]
Merge branch 'postprocwork'

* postprocwork:
  postproc/postprocess: use av_strtok()
  postprocess: make some variables in pp_get_mode_by_name_and_quality() const
  postproc: simplify forwarding return codes
  libpostproc/postprocess: avoid some if()
  fate: add fate-filter-pp1

This is merged instead of just fast forward pushed due to a bug in the git hook
which does not allow commits to change filter-video.mak except merge commits.
filter-video.mak contains a few tabs, which are needed due to Makefile syntax

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostproc/postprocess: use av_strtok()
Michael Niedermayer [Thu, 18 Sep 2014 12:21:27 +0000 (14:21 +0200)]
postproc/postprocess: use av_strtok()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostprocess: make some variables in pp_get_mode_by_name_and_quality() const
Michael Niedermayer [Thu, 18 Sep 2014 12:19:08 +0000 (14:19 +0200)]
postprocess: make some variables in pp_get_mode_by_name_and_quality() const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agopostproc: simplify forwarding return codes
Michael Niedermayer [Thu, 18 Sep 2014 12:09:20 +0000 (14:09 +0200)]
postproc: simplify forwarding return codes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agolibpostproc/postprocess: avoid some if()
Michael Niedermayer [Thu, 18 Sep 2014 12:06:43 +0000 (14:06 +0200)]
libpostproc/postprocess: avoid some if()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate: add fate-filter-pp1
Michael Niedermayer [Thu, 18 Sep 2014 12:02:33 +0000 (14:02 +0200)]
fate: add fate-filter-pp1

This tests a few more filters with forced quantizers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86/me_cmp: combine sad functions into a single macro
James Almer [Thu, 18 Sep 2014 00:45:38 +0000 (21:45 -0300)]
x86/me_cmp: combine sad functions into a single macro

No point in having the sad8 functions separate now that the loop is no
longer unrolled.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoMerge commit '2bb2c2bd75e5f4b28a945511cda77e0a1a44c758'
Michael Niedermayer [Thu, 18 Sep 2014 00:10:55 +0000 (02:10 +0200)]
Merge commit '2bb2c2bd75e5f4b28a945511cda77e0a1a44c758'

* commit '2bb2c2bd75e5f4b28a945511cda77e0a1a44c758':
  rtpenc_chain: Pass the initial time_base hint on to the chained muxer

See: [FFmpeg-devel] [PATCH] avformat/rtpenc_chain: Set timebase
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '3f2c70355ab722bc9f741bd3ed8224c7cfb62379'
Michael Niedermayer [Wed, 17 Sep 2014 23:41:43 +0000 (01:41 +0200)]
Merge commit '3f2c70355ab722bc9f741bd3ed8224c7cfb62379'

* commit '3f2c70355ab722bc9f741bd3ed8224c7cfb62379':
  configure: Use the right variables in check_host_cpp

See: 453944cc77b9ea27c74011eb7c0e20c887b321cf
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovf_deshake: rename Transform.vector to Transform.vec to avoid compiler confusion
Andreas Cadhalpun [Wed, 17 Sep 2014 22:08:05 +0000 (00:08 +0200)]
vf_deshake: rename Transform.vector to Transform.vec to avoid compiler confusion

The token 'vector' is a keyword in the Vector/SIMD Multimedia Extension data types and thus should not be used as a variable name.

This fixes building on powerpc/ppc64el.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoswscale/x86: do not expect registers to be preserved across inline ASM blocks
Vitor Sessak [Wed, 17 Sep 2014 19:10:16 +0000 (21:10 +0200)]
swscale/x86: do not expect registers to be preserved across inline ASM blocks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/x86/vp9lpf: Always include x86util.asm
Michael Niedermayer [Wed, 17 Sep 2014 21:36:53 +0000 (23:36 +0200)]
avcodec/x86/vp9lpf: Always include x86util.asm

Fixes executable stack

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agortpenc_chain: Pass the initial time_base hint on to the chained muxer
Martin Storsjö [Wed, 17 Sep 2014 09:03:18 +0000 (12:03 +0300)]
rtpenc_chain: Pass the initial time_base hint on to the chained muxer

In practice this hint is ignored - the rtp muxer always overwrites
the stream time base without taking the hint into account. But as
a general practice this is the correct way to pass a time base hint
on to a chained muxer.

This avoids warnings about using the codec time base as hint
being deprecated.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoconfigure: Use the right variables in check_host_cpp
Jörg Krause [Thu, 11 Sep 2014 11:55:48 +0000 (13:55 +0200)]
configure: Use the right variables in check_host_cpp

HOSTCPPFLAGS and HOSTCFLAGS are only set in config.mak.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoMerge commit 'c5560e72d0bb69f8a1ac9536570398f84388f396'
Michael Niedermayer [Wed, 17 Sep 2014 18:38:56 +0000 (20:38 +0200)]
Merge commit 'c5560e72d0bb69f8a1ac9536570398f84388f396'

* commit 'c5560e72d0bb69f8a1ac9536570398f84388f396':
  apetag: Fix APE tag size check

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agofate: disable fate-ra4-288, the code uses floats and does not produce the same result...
Michael Niedermayer [Wed, 17 Sep 2014 18:25:22 +0000 (20:25 +0200)]
fate: disable fate-ra4-288, the code uses floats and does not produce the same results on different platforms

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '44caf99ecae7bc1b907fab849ecaa72dd340ba2e'
Michael Niedermayer [Wed, 17 Sep 2014 18:09:09 +0000 (20:09 +0200)]
Merge commit '44caf99ecae7bc1b907fab849ecaa72dd340ba2e'

* commit '44caf99ecae7bc1b907fab849ecaa72dd340ba2e':
  fate: Add tests for RealAudio 1.0 (14.4) and RealAudio 2.0 (with 28.8)

Conflicts:
tests/fate/real.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavfilter: remove obsolete FF_API_FILL_FRAME cruft
James Almer [Mon, 15 Sep 2014 00:31:12 +0000 (21:31 -0300)]
avfilter: remove obsolete FF_API_FILL_FRAME cruft

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoMerge commit '2dd09ebf5597fd5e4a573bee9cccf21ae821f286'
Michael Niedermayer [Wed, 17 Sep 2014 17:59:10 +0000 (19:59 +0200)]
Merge commit '2dd09ebf5597fd5e4a573bee9cccf21ae821f286'

* commit '2dd09ebf5597fd5e4a573bee9cccf21ae821f286':
  cmdutils: Print a more sensible message in show_filters() w/o libavfilter

Conflicts:
cmdutils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoapetag: Fix APE tag size check
Katerina Barone-Adesi [Mon, 15 Sep 2014 23:40:24 +0000 (01:40 +0200)]
apetag: Fix APE tag size check

The size variable is (correctly) unsigned, but is passed to several functions
which take signed parameters, such as avio_read, sometimes after having
numbers added to it. So ensure that size remains within the bounds that
these functions can handle.

CC: libav-stable@libav.org
Signed-off-by: Diego Biurrun <diego@biurrun.de>
5 years agofate: Add tests for RealAudio 1.0 (14.4) and RealAudio 2.0 (with 28.8)
Katerina Barone-Adesi [Mon, 21 Jul 2014 21:28:42 +0000 (23:28 +0200)]
fate: Add tests for RealAudio 1.0 (14.4) and RealAudio 2.0 (with 28.8)

Signed-off-by: Diego Biurrun <diego@biurrun.de>
5 years agoavcodec/x86/me_cmp: fix sad8xh
Michael Niedermayer [Wed, 17 Sep 2014 11:37:34 +0000 (13:37 +0200)]
avcodec/x86/me_cmp: fix sad8xh

This adds back support for 8x4 and 8x16
it does not support 8x2, i think nothing uses that

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86/me_cmp: port mmxext and sse2 sad functions to yasm
James Almer [Wed, 17 Sep 2014 00:41:47 +0000 (21:41 -0300)]
x86/me_cmp: port mmxext and sse2 sad functions to yasm

Also add a missing c->pix_abs[0][0] initialization, and sse2 versions of
sad16_x2, sad16_y2 and sad16_xy2 (%15 to %20 faster than mmxext).
Since the _xy2 versions are not bitexact, they are accordingly marked as
approximate.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodoc/filters: remove aconvert
Paul B Mahol [Wed, 17 Sep 2014 07:55:56 +0000 (07:55 +0000)]
doc/filters: remove aconvert

Signed-off-by: Paul B Mahol <onemda@gmail.com>
5 years agoavfilter: remove obsolete FF_API_ACONVERT_FILTER cruft
James Almer [Mon, 15 Sep 2014 01:46:18 +0000 (22:46 -0300)]
avfilter: remove obsolete FF_API_ACONVERT_FILTER cruft

Signed-off-by: James Almer <jamrial@gmail.com>
5 years agoffplay: try to fix build failure on apple
Michael Niedermayer [Wed, 17 Sep 2014 02:43:51 +0000 (04:43 +0200)]
ffplay: try to fix build failure on apple

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Wed, 17 Sep 2014 01:23:16 +0000 (03:23 +0200)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: use frame queue to determine last used pos
  ffplay: factorize frame queue operations

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/avienc: Dont search for startcodes in inserted empty avi frames
Michael Niedermayer [Tue, 16 Sep 2014 22:38:08 +0000 (00:38 +0200)]
avformat/avienc: Dont search for startcodes in inserted empty avi frames

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodoc/filters: add geq gradient examples
Lou Logan [Tue, 16 Sep 2014 02:07:09 +0000 (18:07 -0800)]
doc/filters: add geq gradient examples

Radial gradient by Víctor Paesa. Linear gradient by Paul Gentemann.

Also-by: Víctor Paesa <victorpaesa@googlemail.com>
Also-by: Paul Gentemann <beriukay@gmail.com>
Signed-off-by: Lou Logan <lou@lrcd.com>