]> git.sesse.net Git - ffmpeg/log
ffmpeg
9 years agoavcodec/x86: use function pointers for {put,add}_pixels_clamped
James Almer [Wed, 24 Sep 2014 18:18:50 +0000 (15:18 -0300)]
avcodec/x86: use function pointers for {put,add}_pixels_clamped

Same behavior as in simple_idct.
This way the best optimized versions available will be used instead.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agolibavutil/opt: fix av_opt_set_channel_layout() to access correct memory address
Philip DeCamp [Wed, 24 Sep 2014 20:15:18 +0000 (16:15 -0400)]
libavutil/opt: fix av_opt_set_channel_layout() to access correct memory address

Signed-off-by: Philip DeCamp <decamp@mit.edu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agox86/videodsp: add ff_emu_edge_{hfix,hvar}_avx2
James Almer [Tue, 23 Sep 2014 21:42:35 +0000 (18:42 -0300)]
x86/videodsp: add ff_emu_edge_{hfix,hvar}_avx2

~15% faster than sse2.

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years agolibavformat/ffmetadec: Make unchanged function arguments const
Michael Niedermayer [Wed, 24 Sep 2014 16:33:55 +0000 (18:33 +0200)]
libavformat/ffmetadec: Make unchanged function arguments const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibavformat/dv: Make unchanged function arguments const
Michael Niedermayer [Wed, 24 Sep 2014 16:33:55 +0000 (18:33 +0200)]
libavformat/dv: Make unchanged function arguments const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibavformat/avienc: Make unchanged function arguments const
Michael Niedermayer [Wed, 24 Sep 2014 16:33:55 +0000 (18:33 +0200)]
libavformat/avienc: Make unchanged function arguments const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agolibavformat/avidec: Make unchanged function arguments const
Michael Niedermayer [Wed, 24 Sep 2014 16:33:55 +0000 (18:33 +0200)]
libavformat/avidec: Make unchanged function arguments const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoMerge commit 'c463dfc7e49929a9891884312b23b27d14729c51'
Michael Niedermayer [Wed, 24 Sep 2014 15:25:31 +0000 (17:25 +0200)]
Merge commit 'c463dfc7e49929a9891884312b23b27d14729c51'

* commit 'c463dfc7e49929a9891884312b23b27d14729c51':
  rtpdec_hevc: Drop a duplicated, nonstandard entry

Merged-by: Michael Niedermayer <michaelni@gmx.at>
9 years agodoc/APIchanges: fix typo
Michael Niedermayer [Wed, 24 Sep 2014 15:14:56 +0000 (17:14 +0200)]
doc/APIchanges: fix typo

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agopostproc: add basic deblock filter visualization support
Michael Niedermayer [Fri, 19 Sep 2014 13:21:36 +0000 (15:21 +0200)]
postproc: add basic deblock filter visualization support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoffplay: use av_codec_get_pkt_timebase()
Michael Niedermayer [Wed, 24 Sep 2014 03:47:36 +0000 (05:47 +0200)]
ffplay: use av_codec_get_pkt_timebase()

Reviewed-by: Benoit Fouet <benoit.fouet@free.fr>
Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agortpdec_hevc: Drop a duplicated, nonstandard entry
Vittorio Giovara [Wed, 17 Sep 2014 12:27:32 +0000 (13:27 +0100)]
rtpdec_hevc: Drop a duplicated, nonstandard entry

The RFC spec draft only specifies the "H265" name - there is no
specification saying how to interpret "HEVC" (if such a packet
format is specified it could be an entirely different format).

Since this is a very new standard (still a draft), there is little
need for compatibility with existing, broken implementations. Therefore
remove the extra alias, to avoid the risk of encouraging incorrect
usage.

Intentionally keeping the ff_hevc_dynamic_handler name for the
handler, to use "hevc" consistently as name for the codec instead
of "h265" within the library internals as long as there only is one
single variant in actual use.

Signed-off-by: Martin Storsjö <martin@martin.st>
9 years agoconfigure: Check if "-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600" is needed for...
Michael Niedermayer [Wed, 24 Sep 2014 03:04:24 +0000 (05:04 +0200)]
configure: Check if "-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600" is needed for localtime_r()

Fixes build with musl

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoconfigure: fail if SDL is unavailable and --enable-sdl is specified
Michael Niedermayer [Tue, 23 Sep 2014 00:20:25 +0000 (02:20 +0200)]
configure: fail if SDL is unavailable and --enable-sdl is specified

Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoconfigure: reindent the --disable-sdl related code
Michael Niedermayer [Tue, 23 Sep 2014 00:08:55 +0000 (02:08 +0200)]
configure: reindent the --disable-sdl related code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agoconfigure: support --disable-sdl
Michael Niedermayer [Mon, 22 Sep 2014 20:13:22 +0000 (22:13 +0200)]
configure: support --disable-sdl

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agohevc: move intermediate bidir buffer
Christophe Gisquet [Tue, 23 Sep 2014 21:36:42 +0000 (21:36 +0000)]
hevc: move intermediate bidir buffer

Other buffers are already there.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agohevc: remove unneeded buffer.
Christophe Gisquet [Tue, 23 Sep 2014 21:36:40 +0000 (21:36 +0000)]
hevc: remove unneeded buffer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
9 years agox86/videodsp: fix warning about discarded 'const' qualifier
James Almer [Tue, 23 Sep 2014 21:29:21 +0000 (18:29 -0300)]
x86/videodsp: fix warning about discarded 'const' qualifier

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
9 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>
9 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>
9 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.

9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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.

9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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.

9 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.

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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

9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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

9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>
9 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>