ffmpeg.git
5 years agoMerge commit '5655732c77f2df9c1dfbddc30cd4844390a6921f'
Michael Niedermayer [Fri, 10 Jan 2014 02:36:42 +0000 (03:36 +0100)]
Merge commit '5655732c77f2df9c1dfbddc30cd4844390a6921f'

* commit '5655732c77f2df9c1dfbddc30cd4844390a6921f':
  avfilter: add needs_writable field to the internal AVFilterPad structure

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'd44bd7fb27d4121512eae0ffce5e48bac25e82dc'
Michael Niedermayer [Fri, 10 Jan 2014 02:34:31 +0000 (03:34 +0100)]
Merge commit 'd44bd7fb27d4121512eae0ffce5e48bac25e82dc'

* commit 'd44bd7fb27d4121512eae0ffce5e48bac25e82dc':
  avfilter: add documentation for needs_writable

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '11d704dc94c029058ac366f85951f6728638fb9c'
Michael Niedermayer [Fri, 10 Jan 2014 02:24:02 +0000 (03:24 +0100)]
Merge commit '11d704dc94c029058ac366f85951f6728638fb9c'

* commit '11d704dc94c029058ac366f85951f6728638fb9c':
  fate: add framepack filter test

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'a7d0e7ead95e584c4866617f046b2493066975c6'
Michael Niedermayer [Fri, 10 Jan 2014 01:53:15 +0000 (02:53 +0100)]
Merge commit 'a7d0e7ead95e584c4866617f046b2493066975c6'

* commit 'a7d0e7ead95e584c4866617f046b2493066975c6':
  lavfi: add framepack filter

Conflicts:
Changelog
doc/filters.texi
libavfilter/allfilters.c
libavfilter/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'aa69cbc9e08281db6ecb98a2c8b4f60e8b12e558'
Michael Niedermayer [Fri, 10 Jan 2014 01:32:12 +0000 (02:32 +0100)]
Merge commit 'aa69cbc9e08281db6ecb98a2c8b4f60e8b12e558'

* commit 'aa69cbc9e08281db6ecb98a2c8b4f60e8b12e558':
  flac muxer: add option to disable writing the global header

Conflicts:
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/mxfdec: check avio_read(UID) result
Michael Niedermayer [Fri, 10 Jan 2014 01:11:20 +0000 (02:11 +0100)]
avformat/mxfdec: check avio_read(UID) result

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7fc9ba2fd98e_82_02785736.mxf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/nutdec: fix packet end clearing
Michael Niedermayer [Thu, 9 Jan 2014 23:32:39 +0000 (00:32 +0100)]
avformat/nutdec: fix packet end clearing

The code was buggy, using the wrong variable, also it missed the case
where the packet become smaller due to sidedata/metadata being extracted
which left a few bytes uninitialized

Fixes use of uninitialized memory
Fixed: msan_uninit-mem_7f6abbe44530_6838_mewmew_vorbis_ssa.nut
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/rmdec: when reading audio blocks, dont leave holes when reading fails
Michael Niedermayer [Thu, 9 Jan 2014 21:59:51 +0000 (22:59 +0100)]
avformat/rmdec: when reading audio blocks, dont leave holes when reading fails

The fate test is changed because the reference file depends on the use of
non cleared data at the very
end. Alternatively we could upload a new reference file, though that would
then have to be changed every time the handling of a truncated frame changes
or theres a change to error concealment, each time adding a new file ...

Fixes use of uninitialized memory
Fixed: msan_uninit-mem_7f3c02b81363_2787_RLG2_19.rm
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavfilter: add needs_writable field to the internal AVFilterPad structure
Vittorio Giovara [Wed, 18 Dec 2013 13:21:25 +0000 (14:21 +0100)]
avfilter: add needs_writable field to the internal AVFilterPad structure

5 years agoavfilter: add documentation for needs_writable
Vittorio Giovara [Wed, 18 Dec 2013 10:40:38 +0000 (11:40 +0100)]
avfilter: add documentation for needs_writable

5 years agofate: add framepack filter test
Vittorio Giovara [Tue, 5 Nov 2013 15:00:49 +0000 (16:00 +0100)]
fate: add framepack filter test

5 years agolavfi: add framepack filter
Vittorio Giovara [Thu, 9 Jan 2014 18:50:19 +0000 (19:50 +0100)]
lavfi: add framepack filter

5 years agoflac muxer: add option to disable writing the global header
Justin Ruggles [Thu, 9 Jan 2014 17:11:26 +0000 (12:11 -0500)]
flac muxer: add option to disable writing the global header

The global header is not explicitly required for playback, and
omitting it allows for simple concatenation.

5 years agoavcodec/mjpegdec: allow lowres with amv
Michael Niedermayer [Thu, 9 Jan 2014 20:31:46 +0000 (21:31 +0100)]
avcodec/mjpegdec: allow lowres with amv

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mjpegdec: use the AVFrame width/height for flipping
Michael Niedermayer [Thu, 9 Jan 2014 20:30:49 +0000 (21:30 +0100)]
avcodec/mjpegdec: use the AVFrame width/height for flipping

This makes it possible to use the code with lowres

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mjpegdec: remove new flipping code
Michael Niedermayer [Thu, 9 Jan 2014 20:23:16 +0000 (21:23 +0100)]
avcodec/mjpegdec: remove new flipping code

It stored images wrong in the user provided buffers (that is you would
end up with a wrongly flipped image if you used direct rendering).
Also it used wrong dimensions as noticed by ubitux

Enable the old code unconditionally so flipping works correctly
again.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 9 Jan 2014 19:56:49 +0000 (20:56 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  ATRAC3+ decoder

Conflicts:
Changelog
configure
libavcodec/atrac3plus.c
libavcodec/atrac3plus.h
libavcodec/atrac3plus_data.h
libavcodec/atrac3plusdec.c
libavcodec/atrac3plusdsp.c
libavcodec/version.h

See: 2e1fb96af36348479e14aa85f445915ea09e70fa
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '4c642d8d98703faf52983243098f35865e15b312'
Michael Niedermayer [Thu, 9 Jan 2014 19:32:43 +0000 (20:32 +0100)]
Merge commit '4c642d8d98703faf52983243098f35865e15b312'

* commit '4c642d8d98703faf52983243098f35865e15b312':
  x86: hpeldsp: Add missing av_cold attribute to init function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'b0be1ae792ac8bbfb0fc7b9b9cb39eaf0feb489b'
Michael Niedermayer [Thu, 9 Jan 2014 19:24:10 +0000 (20:24 +0100)]
Merge commit 'b0be1ae792ac8bbfb0fc7b9b9cb39eaf0feb489b'

* commit 'b0be1ae792ac8bbfb0fc7b9b9cb39eaf0feb489b':
  x86: avcodec: Add a bunch of missing #includes for av_cold

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a'
Michael Niedermayer [Thu, 9 Jan 2014 19:14:10 +0000 (20:14 +0100)]
Merge commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a'

* commit '4b48201d4d9d57a2a1ecf8504bc928aff83cb99a':
  ac3tab.h: #include the correct headers

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoATRAC3+ decoder
Maxim Polijakowski [Fri, 3 Jan 2014 22:23:11 +0000 (23:23 +0100)]
ATRAC3+ decoder

Cleanup by Diego Biurrun.

Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
5 years agodoc/examples/muxing: Fixes frame initialization.
Andre Anjos [Tue, 29 Oct 2013 10:28:26 +0000 (11:28 +0100)]
doc/examples/muxing: Fixes frame initialization.

Fixes use of the example with encoders which use tha AVFrame w/h/pix_fmt fields
FFV1 is one of these codecs

We cannot easily workaround the not set fields in common code because the API
has AVFrame constant for the encoders.
Alternatives would be to fix the API or to duplicate the struct and fill in
missing fields. Or as is to require all user apps to set this correctly and
maybe simplify for that case

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 9 Jan 2014 14:46:31 +0000 (15:46 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mjpegdec: apply flipping after decoding, not before

Conflicts:
libavcodec/mjpegdec.c
libavcodec/mjpegdec.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'e588615d938f8581f0d6f3771662d08cadfc00de'
Michael Niedermayer [Thu, 9 Jan 2014 14:10:31 +0000 (15:10 +0100)]
Merge commit 'e588615d938f8581f0d6f3771662d08cadfc00de'

* commit 'e588615d938f8581f0d6f3771662d08cadfc00de':
  hevc: fix decoding of one PU wide files

Conflicts:
libavcodec/hevc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agox86: hpeldsp: Add missing av_cold attribute to init function
Diego Biurrun [Thu, 9 Jan 2014 13:06:32 +0000 (14:06 +0100)]
x86: hpeldsp: Add missing av_cold attribute to init function

5 years agox86: avcodec: Add a bunch of missing #includes for av_cold
Diego Biurrun [Thu, 9 Jan 2014 13:06:31 +0000 (14:06 +0100)]
x86: avcodec: Add a bunch of missing #includes for av_cold

5 years agoac3tab.h: #include the correct headers
Diego Biurrun [Thu, 9 Jan 2014 13:06:30 +0000 (14:06 +0100)]
ac3tab.h: #include the correct headers

5 years agoMerge commit 'a246af86e47044dec243db2f708cc125d608ea78'
Michael Niedermayer [Thu, 9 Jan 2014 13:48:52 +0000 (14:48 +0100)]
Merge commit 'a246af86e47044dec243db2f708cc125d608ea78'

* commit 'a246af86e47044dec243db2f708cc125d608ea78':
  FATE: add MSS2 tests

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'ca96e337169093979d7c763064ad9dae12b3108c'
Michael Niedermayer [Thu, 9 Jan 2014 13:39:13 +0000 (14:39 +0100)]
Merge commit 'ca96e337169093979d7c763064ad9dae12b3108c'

* commit 'ca96e337169093979d7c763064ad9dae12b3108c':
  vp9: drop support for real (non-emulated) edges

Conflicts:
libavcodec/vp9block.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'ef8c93e2f18c624d0c266687e43ab99af7921dd3'
Michael Niedermayer [Thu, 9 Jan 2014 13:32:09 +0000 (14:32 +0100)]
Merge commit 'ef8c93e2f18c624d0c266687e43ab99af7921dd3'

* commit 'ef8c93e2f18c624d0c266687e43ab99af7921dd3':
  vp8: drop support for real (non-emulated) edges

Conflicts:
tests/fate/vpx.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'ebfe622bb1ca57cecb932e42926745cba7161913'
Michael Niedermayer [Thu, 9 Jan 2014 13:12:19 +0000 (14:12 +0100)]
Merge commit 'ebfe622bb1ca57cecb932e42926745cba7161913'

* commit 'ebfe622bb1ca57cecb932e42926745cba7161913':
  mpegvideo: drop support for real (non-emulated) edges

Conflicts:
libavcodec/mpegvideo.c
libavcodec/mpegvideo_motion.c
libavcodec/wmv2.c

If this is slower on a major platform then it should be investigated
and potentially reverted.

See: 8fc52a5ef94712d900fc8fe7503cf9c9ba635143
See: 3969b4b861ce8152e3195e8f8c3437abd273b90a
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodoc: remove encoder/muxer/sinks docs from ffplay- and ffprobe-all
Timothy Gu [Thu, 9 Jan 2014 05:19:52 +0000 (21:19 -0800)]
doc: remove encoder/muxer/sinks docs from ffplay- and ffprobe-all

ffplay and ffprobe are read-only.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
5 years agoexamples/muxing: set timestamps in output audio packet
Stefano Sabatini [Wed, 8 Jan 2014 14:43:25 +0000 (15:43 +0100)]
examples/muxing: set timestamps in output audio packet

In particular, fix trac ticket #3231.

5 years agoexamples/muxing: use av_frame_free() in place of av_free()
Stefano Sabatini [Thu, 9 Jan 2014 09:39:52 +0000 (10:39 +0100)]
examples/muxing: use av_frame_free() in place of av_free()

5 years agoexamples/muxing: reuse global audio frame
Stefano Sabatini [Wed, 8 Jan 2014 14:42:14 +0000 (15:42 +0100)]
examples/muxing: reuse global audio frame

Simplify logic, avoid multiple unnecessary alloc/free operations.

5 years agoexamples/muxing: honour distinction between encoder PTS timebase and stream timebase
Stefano Sabatini [Tue, 7 Jan 2014 12:03:39 +0000 (13:03 +0100)]
examples/muxing: honour distinction between encoder PTS timebase and stream timebase

Fix PTS set on the frame when encoding, which must be specified in the
encoder timebase or this will confuse the encoder.

When muxing the packet, the PTS/DTS generated by the encoder is then
rescaled to the stream timebase.

5 years agoexamples/muxing: set sample formats from list of codec supported sample formats
Stefano Sabatini [Tue, 7 Jan 2014 11:59:50 +0000 (12:59 +0100)]
examples/muxing: set sample formats from list of codec supported sample formats

Avoid the need of tweaking, also show how to get list of supported sample
formats.

5 years agomjpegdec: apply flipping after decoding, not before
Anton Khirnov [Fri, 20 Dec 2013 09:44:57 +0000 (10:44 +0100)]
mjpegdec: apply flipping after decoding, not before

This is simpler and removes a silly restriction on edges being present.

5 years agohevc: fix decoding of one PU wide files
Guillaume Martres [Fri, 3 Jan 2014 08:10:38 +0000 (09:10 +0100)]
hevc: fix decoding of one PU wide files

For those the block size may be larger than the source linesize (if the
edges are not allocated).

Signed-off-by: Anton Khirnov <anton@khirnov.net>
5 years agoFATE: add MSS2 tests
Anton Khirnov [Tue, 17 Dec 2013 11:44:17 +0000 (12:44 +0100)]
FATE: add MSS2 tests

5 years agovp9: drop support for real (non-emulated) edges
Anton Khirnov [Fri, 20 Dec 2013 10:20:24 +0000 (11:20 +0100)]
vp9: drop support for real (non-emulated) edges

They are not measurably faster on x86, they might be somewhat faster on
other platforms due to missing emu edge SIMD, but the gain is not large
enough to justify the added complexity.

5 years agovp8: drop support for real (non-emulated) edges
Anton Khirnov [Fri, 20 Dec 2013 10:20:24 +0000 (11:20 +0100)]
vp8: drop support for real (non-emulated) edges

They are not measurably faster on x86, they might be somewhat faster on
other platforms due to missing emu edge SIMD, but the gain is not large
enough to justify the added complexity.

5 years agompegvideo: drop support for real (non-emulated) edges
Anton Khirnov [Fri, 20 Dec 2013 10:20:24 +0000 (11:20 +0100)]
mpegvideo: drop support for real (non-emulated) edges

Several decoders disable those anyway and they are not measurably faster
on x86. They might be somewhat faster on other platforms due to missing
emu edge SIMD, but the gain is not large enough (and those decoders
relevant enough) to justify the added complexity.

5 years agoavcodec/msvideo1enc: fix SKIPS_MAX
Michael Niedermayer [Thu, 9 Jan 2014 03:02:58 +0000 (04:02 +0100)]
avcodec/msvideo1enc: fix SKIPS_MAX

Fixes Ticket3270

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavfilter: avfilter_register() that works in O(1) time
Michael Niedermayer [Sun, 8 Dec 2013 01:27:11 +0000 (02:27 +0100)]
avfilter: avfilter_register() that works in O(1) time

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodoc/filters: add rotate example using degrees
Lou Logan [Wed, 8 Jan 2014 19:36:18 +0000 (10:36 -0900)]
doc/filters: add rotate example using degrees

5 years agoavformat/udp: debug log udp socket size
rogerdpack [Mon, 6 Jan 2014 19:57:52 +0000 (12:57 -0700)]
avformat/udp: debug log udp socket size

Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/libstagefright: drop dependancy on sizeof(AVFrame)
Michael Niedermayer [Tue, 17 Dec 2013 15:27:36 +0000 (16:27 +0100)]
avcodec/libstagefright: drop dependancy on sizeof(AVFrame)

untested (noone tested within about a month) and the change is
quite trivial so should be ok. While the code before this change
is broken.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/kgv1dec: remove unused function and variable
Michael Niedermayer [Wed, 8 Jan 2014 19:15:22 +0000 (20:15 +0100)]
avcodec/kgv1dec: remove unused function and variable

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoswscale: disable ARM code until its build failure with clang/iphone is fixed
Michael Niedermayer [Wed, 8 Jan 2014 16:12:22 +0000 (17:12 +0100)]
swscale: disable ARM code until its build failure with clang/iphone is fixed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9/x86: make STORE_2X2 macro local.
Ronald S. Bultje [Wed, 8 Jan 2014 12:22:50 +0000 (07:22 -0500)]
vp9/x86: make STORE_2X2 macro local.

Prevents this assembler warning:
libavcodec/x86/vp9itxfm.asm:1208: warning: (VP9_IDCT32_1D:309)
redefining multi-line macro `STORE_2X2'

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/huffyuvenc: Factorize store_huffman_tables() out
Michael Niedermayer [Wed, 8 Jan 2014 13:00:14 +0000 (14:00 +0100)]
avcodec/huffyuvenc: Factorize store_huffman_tables() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/ffv1enc: choose 1.2 by default for higher resolutions to ensure multi-threade...
Michael Niedermayer [Sun, 8 Dec 2013 15:39:35 +0000 (16:39 +0100)]
avcodec/ffv1enc: choose 1.2 by default for higher resolutions to ensure multi-threaded decodability

Reviewed-by: "Peter B." <pb@das-werkstatt.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'rbultje/vp9-simd'
Michael Niedermayer [Wed, 8 Jan 2014 12:02:38 +0000 (13:02 +0100)]
Merge remote-tracking branch 'rbultje/vp9-simd'

* rbultje/vp9-simd:
  vp9: make mv bounds 32bit.
  vp9: reset contextual caches on frame size change with mt enabled.
  vp9/x86: idct_32x32_add_ssse3 sub-8x8-idct.
  vp9/x86: idct_32x32_add_ssse3 sub-16x16-idct.
  vp9/x86: idct_32x32_add_ssse3.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavisynth: Use av_packet_from_data instead of av_new_packet
Stephen Hutchinson [Wed, 8 Jan 2014 05:37:57 +0000 (00:37 -0500)]
avisynth: Use av_packet_from_data instead of av_new_packet

If the audio changes from 9eac7c4 were merged as they were, this
would cause scripts with both video+audio to fail with a lot of
audio decoding errors (the video would be fine). Scripts with
only one of either video or audio were unaffected. Additionally,
the av_packet changes in general caused seeking to break.

Using av_packet_from_data allows video+audio scripts to work as
expected, without audio decoding errors.  It also fixes seeking.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavisynth: More av_new_packet changes
Anton Khirnov [Wed, 8 Jan 2014 05:37:56 +0000 (00:37 -0500)]
avisynth: More av_new_packet changes

These are the remaining av_packet-related bits from 9eac7c4
that didn't get merged at that time.

Changes authored by Anton Khirnov <anton@khirnov.net>, split out
from 9eac7c4 by Stephen Hutchinson <qyot27@gmail.com>

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/huffyuvenc: fix -context 1 encoding
Michael Niedermayer [Wed, 8 Jan 2014 11:38:57 +0000 (12:38 +0100)]
avcodec/huffyuvenc: fix -context 1 encoding

Fixes Ticket3281

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agodoc/muxers/image2: apply several formatting changes
Stefano Sabatini [Wed, 8 Jan 2014 09:13:15 +0000 (10:13 +0100)]
doc/muxers/image2: apply several formatting changes

5 years agodoc/muxers/image2: document strftime option
Ramiro Polla [Wed, 8 Jan 2014 04:49:42 +0000 (02:49 -0200)]
doc/muxers/image2: document strftime option

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
5 years agodoc/muxers/matroska: add information to the matroska metadata language entry
Helmut K. C. Tessarek [Wed, 8 Jan 2014 08:50:57 +0000 (09:50 +0100)]
doc/muxers/matroska: add information to the matroska metadata language entry

5 years agodoc/ffmpeg: remove documentation for removed vlang/slang options
Stefano Sabatini [Wed, 8 Jan 2014 08:47:53 +0000 (09:47 +0100)]
doc/ffmpeg: remove documentation for removed vlang/slang options

5 years agodoc/muxers/matroska: reformat documentation
Stefano Sabatini [Wed, 8 Jan 2014 08:45:04 +0000 (09:45 +0100)]
doc/muxers/matroska: reformat documentation

5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 8 Jan 2014 04:44:51 +0000 (05:44 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  arm: Add a missing # as prefix for an immediate constant

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '5dae4872357613a0b51120b54a4c5221e0ec3f69'
Michael Niedermayer [Wed, 8 Jan 2014 04:36:48 +0000 (05:36 +0100)]
Merge commit '5dae4872357613a0b51120b54a4c5221e0ec3f69'

* commit '5dae4872357613a0b51120b54a4c5221e0ec3f69':
  arm: Allow overriding the alignment set in the function macro

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit 'b7b932f5e3602bd34c3cc634b71c8bbbc0fb8dc0'
Michael Niedermayer [Wed, 8 Jan 2014 04:21:10 +0000 (05:21 +0100)]
Merge commit 'b7b932f5e3602bd34c3cc634b71c8bbbc0fb8dc0'

* commit 'b7b932f5e3602bd34c3cc634b71c8bbbc0fb8dc0':
  arm: Remove a leftover define for the pld instruction

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '67bb3a4e285a5871770cbaa2d78bf9024961dd0f'
Michael Niedermayer [Wed, 8 Jan 2014 04:13:25 +0000 (05:13 +0100)]
Merge commit '67bb3a4e285a5871770cbaa2d78bf9024961dd0f'

* commit '67bb3a4e285a5871770cbaa2d78bf9024961dd0f':
  arm: cosmetics: Reindent the h264dsp neon init function

Conflicts:
libavcodec/arm/h264dsp_init_arm.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/mxfdec: detect loops during header parsing
Michael Niedermayer [Wed, 8 Jan 2014 03:49:50 +0000 (04:49 +0100)]
avformat/mxfdec: detect loops during header parsing

The header parser uses forward and backward parsing, making the
bulletproof prevention of loops difficult, thus this simple
detection code.
If someone improves the forward/backward parsing so it cannot loop
then this commit should be reverted

Fixes Ticket3278

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agovp9: make mv bounds 32bit.
Ronald S. Bultje [Tue, 7 Jan 2014 12:24:03 +0000 (07:24 -0500)]
vp9: make mv bounds 32bit.

Fixes an assert in file from trac ticket 3188.

5 years agovp9: reset contextual caches on frame size change with mt enabled.
Ronald S. Bultje [Tue, 7 Jan 2014 12:24:31 +0000 (07:24 -0500)]
vp9: reset contextual caches on frame size change with mt enabled.

Fixes crash/valgrind errors in trac ticket 3188 and hang in 3274.

5 years agovp9/x86: idct_32x32_add_ssse3 sub-8x8-idct.
Ronald S. Bultje [Sun, 5 Jan 2014 16:18:47 +0000 (11:18 -0500)]
vp9/x86: idct_32x32_add_ssse3 sub-8x8-idct.

Runtime of the full 32x32 idct goes from 2446 to 2441 cycles (intra) or
from 1425 to 1306 cycles (inter). Overall runtime is not significantly
affected.

5 years agovp9/x86: idct_32x32_add_ssse3 sub-16x16-idct.
Ronald S. Bultje [Sat, 4 Jan 2014 15:29:45 +0000 (10:29 -0500)]
vp9/x86: idct_32x32_add_ssse3 sub-16x16-idct.

Runtime of all IDCTs together goes from 3327 to 2473 cycles (intra, i.e.
~35% faster) or from 2312 to 1448 cycles (inter, i.e. ~60% faster). Total
decode time of ped1080p.webm goes from 8.086sec to 7.974sec (1.4% faster).

5 years agovp9/x86: idct_32x32_add_ssse3.
Ronald S. Bultje [Sat, 4 Jan 2014 15:08:47 +0000 (10:08 -0500)]
vp9/x86: idct_32x32_add_ssse3.

Sub-IDCTs will follow later. ped1080.webm goes from 9.295s to 8.191s
(13.5% faster). The IDCT itself goes from 4372 (intra) or 4337 (inter)
to 403 (intra) or 329 (inter) cycles for the DC-only form, 23755 (intra)
or 23723 (inter) to 3497 (intra) or 3607 (inter) cycles for the no-DC
form, which averages from 23393 (intra) or 16612 (inter) to 3449 (intra)
or 2392 (inter) for all 32x32s together, i.e. about ~7x faster (all
tests done on ped1080p.webm).

5 years agoUse the h264 parser when decoding VSSH in avi.
Carl Eugen Hoyos [Tue, 7 Jan 2014 21:49:05 +0000 (22:49 +0100)]
Use the h264 parser when decoding VSSH in avi.

Fixes ticket #3261 visually.

Analyzed-by: Michael Doilnitsyn
5 years agodoc/filters/equalizer: add examples for equalizer
Werner Robitza [Thu, 2 Jan 2014 19:17:56 +0000 (20:17 +0100)]
doc/filters/equalizer: add examples for equalizer

Add two examples on the usage of the equalizer filter.

5 years agotools/qt-faststart: add -movflags +faststart note
Lou Logan [Tue, 7 Jan 2014 19:59:04 +0000 (10:59 -0900)]
tools/qt-faststart: add -movflags +faststart note

5 years agoavformat/takdec: zero padding area before use
Michael Niedermayer [Tue, 7 Jan 2014 18:47:37 +0000 (19:47 +0100)]
avformat/takdec: zero padding area before use

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7fcecee73d71_6470_luckynight-partial.tak
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoarm: Add a missing # as prefix for an immediate constant
Martin Storsjö [Tue, 7 Jan 2014 12:01:24 +0000 (14:01 +0200)]
arm: Add a missing # as prefix for an immediate constant

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoarm: Allow overriding the alignment set in the function macro
Martin Storsjö [Tue, 7 Jan 2014 10:13:11 +0000 (12:13 +0200)]
arm: Allow overriding the alignment set in the function macro

The function macro always sets .align 2 before declaring the
function label (since 5c5e1ea3) and always sets the section to
.text (since 278caa6a).

The .align 5 before certain functions, added in fc252eba, were added
before .text and .align were added to the function macro and thus
became useless/unused when the function macro got them.

This restores the original intention, to align the loop entry
points.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoarm: Remove a leftover define for the pld instruction
Martin Storsjö [Tue, 7 Jan 2014 10:05:56 +0000 (12:05 +0200)]
arm: Remove a leftover define for the pld instruction

This file no longer uses the pld instruction at all, all such uses
have been split into hpeldsp_arm.S.

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoarm: cosmetics: Reindent the h264dsp neon init function
Martin Storsjö [Tue, 7 Jan 2014 09:15:49 +0000 (11:15 +0200)]
arm: cosmetics: Reindent the h264dsp neon init function

Signed-off-by: Martin Storsjö <martin@martin.st>
5 years agoavformat/adxdec: dont return random data on EOF
Michael Niedermayer [Tue, 7 Jan 2014 15:05:56 +0000 (16:05 +0100)]
avformat/adxdec: dont return random data on EOF

Fixes use of uninitialized memory
Partly fixes; msan_uninit-mem_7fb7d24780d0_2744_R03T.CAK
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/segafilm: drop song and dance, this seems not to do anything anymore since...
Michael Niedermayer [Tue, 7 Jan 2014 13:38:49 +0000 (14:38 +0100)]
avformat/segafilm: drop song and dance, this seems not to do anything anymore since a long time

Fixes use of uninitialized memory
Partly fixes; msan_uninit-mem_7fb7d24780d0_2744_R03T.CAK
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/flacdec: check rice_order against blocksize
Michael Niedermayer [Tue, 7 Jan 2014 12:57:47 +0000 (13:57 +0100)]
avcodec/flacdec: check rice_order against blocksize

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f6e13c220d0_8489_short.flac
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 7 Jan 2014 12:16:47 +0000 (13:16 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  network.h: Add #endif comments to improve readability

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agorename CONFIG_FFT_FIXED_32 -> FFT_FIXED_32
Michael Niedermayer [Tue, 7 Jan 2014 12:05:33 +0000 (13:05 +0100)]
rename CONFIG_FFT_FIXED_32 -> FFT_FIXED_32

This matches FFT_FLOAT

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '794fcf79a89eca2d4e889803b2c804a0b1defbb3'
Michael Niedermayer [Tue, 7 Jan 2014 12:04:09 +0000 (13:04 +0100)]
Merge commit '794fcf79a89eca2d4e889803b2c804a0b1defbb3'

* commit '794fcf79a89eca2d4e889803b2c804a0b1defbb3':
  Rename CONFIG_FFT_FLOAT ---> FFT_FLOAT

Conflicts:
libavcodec/fft-internal.h
libavcodec/fft-test.c
libavcodec/fft_fixed.c
libavcodec/fft_float.c
libavcodec/fft_template.c
libavcodec/mdct_fixed.c
libavcodec/mdct_float.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoexamples/decoding_encoding: fix style nits
Stefano Sabatini [Tue, 7 Jan 2014 11:47:28 +0000 (12:47 +0100)]
examples/decoding_encoding: fix style nits

5 years agoavformat/webvttdec: Dont skip over a never checked byte after -->
Michael Niedermayer [Tue, 7 Jan 2014 03:08:18 +0000 (04:08 +0100)]
avformat/webvttdec: Dont skip over a never checked byte after -->

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f49667d83db_3396_WebVTT_capability_tester.vtt
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/mpeg4videodec: use av_fast_padded_malloc() for bitstream buffer
Michael Niedermayer [Tue, 7 Jan 2014 00:27:23 +0000 (01:27 +0100)]
avcodec/mpeg4videodec: use av_fast_padded_malloc() for bitstream buffer

Fixes use of uninitialized memory with vlc (sample from ticket3277)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 6 Jan 2014 23:38:19 +0000 (00:38 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  libopusenc: Change default frame duration to 20 ms

See: 74906d3727ec3bd9b7b28dfa7a98ff6e8cf8b6d7
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/rmdec: check that sub_packet_size fit in the packet for DEINT_ID_GENR
Michael Niedermayer [Mon, 6 Jan 2014 21:58:24 +0000 (22:58 +0100)]
avformat/rmdec: check that sub_packet_size fit in the packet for DEINT_ID_GENR

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7fa8c49400d0_3923_audiosig.rm
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavformat/nutdec: check avio_read() return code
Michael Niedermayer [Mon, 6 Jan 2014 21:58:24 +0000 (22:58 +0100)]
avformat/nutdec: check avio_read() return code

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f2785ab8669_6838_mewmew_vorbis_ssa.nut
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '9409c9bdbfd829353473ee6cc3e91c726481c069'
Michael Niedermayer [Mon, 6 Jan 2014 21:24:47 +0000 (22:24 +0100)]
Merge commit '9409c9bdbfd829353473ee6cc3e91c726481c069'

* commit '9409c9bdbfd829353473ee6cc3e91c726481c069':
  configure: Disable networking if winsock2.h is available but winsock functions aren't

Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoMerge commit '01d245ef4392152dbdc78a6ba4dfa0a6e8b08e6f'
Michael Niedermayer [Mon, 6 Jan 2014 21:09:14 +0000 (22:09 +0100)]
Merge commit '01d245ef4392152dbdc78a6ba4dfa0a6e8b08e6f'

* commit '01d245ef4392152dbdc78a6ba4dfa0a6e8b08e6f':
  random_seed: Rewrite the generic clock() based seed code

Conflicts:
libavutil/random_seed.c

See: 66531c75d3bfd8a013acd8bd3c04a131dae2a1a0
Merged-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/huffyuv: add YUVA420P, YUVA422P, YUVA444P, GBRAP, GRAY8A
Michael Niedermayer [Mon, 6 Jan 2014 18:47:34 +0000 (19:47 +0100)]
avcodec/huffyuv: add YUVA420P, YUVA422P, YUVA444P, GBRAP, GRAY8A

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agonetwork.h: Add #endif comments to improve readability
Diego Biurrun [Mon, 6 Jan 2014 10:26:20 +0000 (11:26 +0100)]
network.h: Add #endif comments to improve readability

5 years agoavcodec/huffyuv: add GRAY8 support
Michael Niedermayer [Mon, 6 Jan 2014 18:47:34 +0000 (19:47 +0100)]
avcodec/huffyuv: add GRAY8 support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoavcodec/huffyuv: add GBRP support
Michael Niedermayer [Mon, 6 Jan 2014 18:47:34 +0000 (19:47 +0100)]
avcodec/huffyuv: add GBRP support

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
5 years agoRename CONFIG_FFT_FLOAT ---> FFT_FLOAT
Diego Biurrun [Mon, 6 Jan 2014 13:48:18 +0000 (14:48 +0100)]
Rename CONFIG_FFT_FLOAT ---> FFT_FLOAT

The define does not originate from configure, so it should not
have a name that is CONFIG_-prefixed.

5 years agolibopusenc: Change default frame duration to 20 ms
Paul B Mahol [Fri, 15 Nov 2013 01:09:06 +0000 (01:09 +0000)]
libopusenc: Change default frame duration to 20 ms

20 ms is the default in the libopus encoder, and gives better
quality than 10 ms.

Signed-off-by: Martin Storsjö <martin@martin.st>