ffmpeg.git
6 years agoMerge commit 'a8ea936a0a00570f61a16a588821b52f6a3115c2'
Michael Niedermayer [Wed, 13 Feb 2013 11:05:00 +0000 (12:05 +0100)]
Merge commit 'a8ea936a0a00570f61a16a588821b52f6a3115c2'

* commit 'a8ea936a0a00570f61a16a588821b52f6a3115c2':
  libilbc: decode directly to the user-provided AVFrame
  dpcm: decode directly to the user-provided AVFrame
  imc/iac: decode directly to the user-provided AVFrame
  gsm: decode directly to the user-provided AVFrame

Conflicts:
libavcodec/dpcm.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'cb7b47a61dba0b9329ecede5dd3211dc0662dc05'
Michael Niedermayer [Wed, 13 Feb 2013 10:59:51 +0000 (11:59 +0100)]
Merge commit 'cb7b47a61dba0b9329ecede5dd3211dc0662dc05'

* commit 'cb7b47a61dba0b9329ecede5dd3211dc0662dc05':
  g726: decode directly to the user-provided AVFrame
  g723.1: decode directly to the user-provided AVFrame
  g722: decode directly to the user-provided AVFrame
  flac: decode directly to the user-provided AVFrame
  cinaudio: decode directly to the user-provided AVFrame

Conflicts:
libavcodec/g723_1.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '182821cff43f5f977004d105b86c47ceb20d00d6'
Michael Niedermayer [Wed, 13 Feb 2013 10:53:23 +0000 (11:53 +0100)]
Merge commit '182821cff43f5f977004d105b86c47ceb20d00d6'

* commit '182821cff43f5f977004d105b86c47ceb20d00d6':
  dca: decode directly to the user-provided AVFrame
  cook: decode directly to the user-provided AVFrame
  comfortnoise: decode directly to the user-provided AVFrame
  bmvaudio: decode directly to the user-provided AVFrame
  pcm: decode directly to the user-provided AVFrame

Conflicts:
libavcodec/pcm.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '5cc0bd2cb47cbb1040f2bb0ded8d72a442c79b20'
Michael Niedermayer [Wed, 13 Feb 2013 10:45:25 +0000 (11:45 +0100)]
Merge commit '5cc0bd2cb47cbb1040f2bb0ded8d72a442c79b20'

* commit '5cc0bd2cb47cbb1040f2bb0ded8d72a442c79b20':
  binkaudio: decode directly to the user-provided AVFrame
  atrac3: decode directly to the user-provided AVFrame
  atrac1: decode directly to the user-provided AVFrame
  ape: decode directly to the user-provided AVFrame
  amrwb: decode directly to the user-provided AVFrame

Conflicts:
libavcodec/amrwbdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'e3db34291f4401a16f6ac92721617a9f33cd4c31'
Michael Niedermayer [Wed, 13 Feb 2013 10:36:28 +0000 (11:36 +0100)]
Merge commit 'e3db34291f4401a16f6ac92721617a9f33cd4c31'

* commit 'e3db34291f4401a16f6ac92721617a9f33cd4c31':
  amrnb: decode directly to the user-provided AVFrame
  als: decode directly to the user-provided AVFrame
  alac: decode directly to the user-provided AVFrame
  adxenc: alloc/free coded_frame instead of keeping it in the ADXContext
  adx: decode directly to the user-provided AVFrame

Conflicts:
libavcodec/alsdec.c
libavcodec/amrnbdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit 'e57daa876bf0cf50782550e366e589441cd8c2bd'
Michael Niedermayer [Wed, 13 Feb 2013 10:18:55 +0000 (11:18 +0100)]
Merge commit 'e57daa876bf0cf50782550e366e589441cd8c2bd'

* commit 'e57daa876bf0cf50782550e366e589441cd8c2bd':
  adpcm: decode directly to the user-provided AVFrame
  ac3: decode directly to the user-provided AVFrame
  aac: decode directly to the user-provided AVFrame
  8svx: decode directly to the user-provided AVFrame

Conflicts:
libavcodec/8svx.c
libavcodec/ac3dec.c
libavcodec/adpcm.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodoc/demuxers: quote command line arguments with @code
Daniel Verkamp [Tue, 12 Feb 2013 18:15:51 +0000 (11:15 -0700)]
doc/demuxers: quote command line arguments with @code

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoshorten: dont leave invalid channel counts in the context.
Michael Niedermayer [Wed, 13 Feb 2013 00:03:30 +0000 (01:03 +0100)]
shorten: dont leave invalid channel counts in the context.

Fixes freeing invalid addresses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agotiff: Check buffer allocation and pointer increment more carefully in shorts2str...
Michael Niedermayer [Tue, 12 Feb 2013 22:40:24 +0000 (23:40 +0100)]
tiff: Check buffer allocation and pointer increment more carefully in shorts2str() and double2str()

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agofaxcompr: Dont read ref when the end has been reached in pass mode
Michael Niedermayer [Tue, 12 Feb 2013 21:14:50 +0000 (22:14 +0100)]
faxcompr: Dont read ref when the end has been reached in pass mode

Fixes reading over the end

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agopngdec/filter: dont access out of array elements at the end
Michael Niedermayer [Tue, 12 Feb 2013 18:53:40 +0000 (19:53 +0100)]
pngdec/filter: dont access out of array elements at the end

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibilbc: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 23:05:53 +0000 (18:05 -0500)]
libilbc: decode directly to the user-provided AVFrame

6 years agog726: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:56:53 +0000 (17:56 -0500)]
g726: decode directly to the user-provided AVFrame

6 years agodca: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:43:47 +0000 (17:43 -0500)]
dca: decode directly to the user-provided AVFrame

6 years agodpcm: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 23:03:43 +0000 (18:03 -0500)]
dpcm: decode directly to the user-provided AVFrame

6 years agog723.1: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:55:09 +0000 (17:55 -0500)]
g723.1: decode directly to the user-provided AVFrame

6 years agocook: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:41:31 +0000 (17:41 -0500)]
cook: decode directly to the user-provided AVFrame

6 years agoimc/iac: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 23:01:45 +0000 (18:01 -0500)]
imc/iac: decode directly to the user-provided AVFrame

6 years agog722: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:53:06 +0000 (17:53 -0500)]
g722: decode directly to the user-provided AVFrame

6 years agogsm: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 23:00:01 +0000 (18:00 -0500)]
gsm: decode directly to the user-provided AVFrame

6 years agoflac: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:49:27 +0000 (17:49 -0500)]
flac: decode directly to the user-provided AVFrame

6 years agocinaudio: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:47:02 +0000 (17:47 -0500)]
cinaudio: decode directly to the user-provided AVFrame

6 years agobinkaudio: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:26:26 +0000 (17:26 -0500)]
binkaudio: decode directly to the user-provided AVFrame

6 years agoamrnb: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:01:33 +0000 (17:01 -0500)]
amrnb: decode directly to the user-provided AVFrame

6 years agoadpcm: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 21:43:07 +0000 (16:43 -0500)]
adpcm: decode directly to the user-provided AVFrame

6 years agocomfortnoise: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:37:34 +0000 (17:37 -0500)]
comfortnoise: decode directly to the user-provided AVFrame

6 years agoatrac3: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:24:53 +0000 (17:24 -0500)]
atrac3: decode directly to the user-provided AVFrame

6 years agoals: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 21:59:43 +0000 (16:59 -0500)]
als: decode directly to the user-provided AVFrame

6 years agoac3: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 21:40:37 +0000 (16:40 -0500)]
ac3: decode directly to the user-provided AVFrame

6 years agobmvaudio: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:35:54 +0000 (17:35 -0500)]
bmvaudio: decode directly to the user-provided AVFrame

6 years agoatrac1: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:07:10 +0000 (17:07 -0500)]
atrac1: decode directly to the user-provided AVFrame

6 years agoalac: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 21:56:17 +0000 (16:56 -0500)]
alac: decode directly to the user-provided AVFrame

6 years agoaac: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 21:37:23 +0000 (16:37 -0500)]
aac: decode directly to the user-provided AVFrame

6 years agopcm: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:10:12 +0000 (17:10 -0500)]
pcm: decode directly to the user-provided AVFrame

6 years agoape: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:05:40 +0000 (17:05 -0500)]
ape: decode directly to the user-provided AVFrame

6 years agoadxenc: alloc/free coded_frame instead of keeping it in the ADXContext
Justin Ruggles [Sun, 23 Dec 2012 21:51:41 +0000 (16:51 -0500)]
adxenc: alloc/free coded_frame instead of keeping it in the ADXContext

6 years ago8svx: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 21:28:03 +0000 (16:28 -0500)]
8svx: decode directly to the user-provided AVFrame

6 years agoamrwb: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 22:03:36 +0000 (17:03 -0500)]
amrwb: decode directly to the user-provided AVFrame

6 years agoadx: decode directly to the user-provided AVFrame
Justin Ruggles [Sun, 23 Dec 2012 21:50:06 +0000 (16:50 -0500)]
adx: decode directly to the user-provided AVFrame

6 years agoWAV muxer: add RF64 support
Daniel Verkamp [Wed, 23 Jan 2013 08:30:23 +0000 (01:30 -0700)]
WAV muxer: add RF64 support

6 years agolavc/tta: Add support for encrypted streams
James Almer [Wed, 30 Jan 2013 03:35:26 +0000 (00:35 -0300)]
lavc/tta: Add support for encrypted streams

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 12 Feb 2013 13:10:36 +0000 (14:10 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  lavu: avoid clashing definition of E
  doc: developer: Add a note about reserved system name space

Conflicts:
libavutil/internal.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '56dea32f09e71460add14a1b6d0fbe6eb16f02a4'
Michael Niedermayer [Tue, 12 Feb 2013 12:41:24 +0000 (13:41 +0100)]
Merge commit '56dea32f09e71460add14a1b6d0fbe6eb16f02a4'

* commit '56dea32f09e71460add14a1b6d0fbe6eb16f02a4':
  doc: developer: Fix wording in "naming conventions" section
  openbsd: Add minor number to shared library install name

Conflicts:
doc/developer.texi

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '304b806cb524fb040f8e09a241040f1af2cb820b'
Michael Niedermayer [Tue, 12 Feb 2013 12:26:15 +0000 (13:26 +0100)]
Merge commit '304b806cb524fb040f8e09a241040f1af2cb820b'

* commit '304b806cb524fb040f8e09a241040f1af2cb820b':
  build: Make library minor version visible in the Makefile
  x86: mpeg4qpel: Make movsxifnidn do the right thing

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '4c51fe48ba6dde059360b7451db7f6bbf2f11db3'
Michael Niedermayer [Tue, 12 Feb 2013 12:13:36 +0000 (13:13 +0100)]
Merge commit '4c51fe48ba6dde059360b7451db7f6bbf2f11db3'

* commit '4c51fe48ba6dde059360b7451db7f6bbf2f11db3':
  h264: Copy h264chroma dsp context to slice thread copies
  swscale: Disallow conversion to GBRP16

Conflicts:
libswscale/utils.c
tests/ref/lavfi/pixdesc
tests/ref/lavfi/pixfmts_copy
tests/ref/lavfi/pixfmts_null
tests/ref/lavfi/pixfmts_scale
tests/ref/lavfi/pixfmts_vflip

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '62a43d30cc3b9b2460f2c926beb522df32493625'
Michael Niedermayer [Tue, 12 Feb 2013 11:58:10 +0000 (12:58 +0100)]
Merge commit '62a43d30cc3b9b2460f2c926beb522df32493625'

* commit '62a43d30cc3b9b2460f2c926beb522df32493625':
  crc: Move static data table from header to .c file
  avcodec/rectangle: Remove nonsense assert

Conflicts:
libavcodec/rectangle.h
libavutil/crc_data.h

The assert is not removed as the assert ensures clear and easy
to debug failures instead of undefined behavior in case of
misalignment.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '375ef6528c9dd2db7f9881e232cb0ec3aa16970d'
Michael Niedermayer [Tue, 12 Feb 2013 11:40:57 +0000 (12:40 +0100)]
Merge commit '375ef6528c9dd2db7f9881e232cb0ec3aa16970d'

* commit '375ef6528c9dd2db7f9881e232cb0ec3aa16970d':
  libfdk-aacenc: Actually check for upper bounds of cutoff
  arm: Fall back to runtime cpu feature detection via /proc/cpuinfo

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavu: avoid clashing definition of E
Luca Barbato [Sat, 9 Feb 2013 21:37:07 +0000 (22:37 +0100)]
lavu: avoid clashing definition of E

E is usually defined as a shorthand for AV_OPT_FLAG_ENCODING_PARAM.
Rename the single expansion E(x) now used in libavutil to E1.

6 years agoAdd add_pixels4/8() to h264dsp, and remove add_pixels4 from dsputil.
Ronald S. Bultje [Tue, 12 Feb 2013 01:04:27 +0000 (17:04 -0800)]
Add add_pixels4/8() to h264dsp, and remove add_pixels4 from dsputil.

These functions are mostly H264-specific (the only other user I can
spot is bink), and this allows us to special-case some functionality
for H264. Also remove the 16-bit-coeff with >8bpp versions (unused)
and merge the duplicate 32-bit-coeff for >8bpp (identical).

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosanm: Use the correct height variable in the decoded_size checks
Michael Niedermayer [Tue, 12 Feb 2013 01:03:28 +0000 (02:03 +0100)]
sanm: Use the correct height variable in the decoded_size checks

Fixes integer overflow and out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosanm: init sizes with the full frame size
Michael Niedermayer [Tue, 12 Feb 2013 01:00:04 +0000 (02:00 +0100)]
sanm: init sizes with the full frame size

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosanm: reset frame sizes on buffer destruction
Michael Niedermayer [Tue, 12 Feb 2013 00:59:07 +0000 (01:59 +0100)]
sanm: reset frame sizes on buffer destruction

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosanm: add forgotten check for decoded_size in old_codec37()
Michael Niedermayer [Tue, 12 Feb 2013 00:09:03 +0000 (01:09 +0100)]
sanm: add forgotten check for decoded_size in old_codec37()

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: fix streamcopy of lsf mp3.
Michael Niedermayer [Mon, 11 Feb 2013 23:32:16 +0000 (00:32 +0100)]
ffmpeg: fix streamcopy of lsf mp3.

Fixes streamcopy of bear_mpeg4_mp3.avi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodoc/filters: rework idet filter description
Stefano Sabatini [Mon, 11 Feb 2013 22:40:41 +0000 (23:40 +0100)]
doc/filters: rework idet filter description

6 years agodoc/filters: apply minor fixes to il filter docs
Stefano Sabatini [Mon, 11 Feb 2013 22:38:47 +0000 (23:38 +0100)]
doc/filters: apply minor fixes to il filter docs

6 years agodoc/filters: fix position of il filter docs
Stefano Sabatini [Mon, 11 Feb 2013 22:37:53 +0000 (23:37 +0100)]
doc/filters: fix position of il filter docs

6 years agoUse simple nop codes for <= sse (rather than <= mmx).
Ronald S. Bultje [Tue, 29 Jan 2013 23:55:19 +0000 (15:55 -0800)]
Use simple nop codes for <= sse (rather than <= mmx).

The "CPU: CentaurHauls family 6 model 9 stepping 8" family of CPUs
(flags: fpu vme de pse tsc msr cx8 sep mtrr pge mov pat mmx fxsr sse
up rng rng_en ace ace_en) SIGILLs on long nop codes.

Change-Id: I7e7c52a2191006df30a9aadbc40d481a1db89106

6 years agoh264chroma: remove duplicate 9/10 bit functions.
Ronald S. Bultje [Mon, 11 Feb 2013 21:52:38 +0000 (13:52 -0800)]
h264chroma: remove duplicate 9/10 bit functions.

Also use the resulting 16bpp functions for anything >8 and <=16, not just
9 and 10. This fixes 12 and 14bpp H264 support.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodoc: developer: Fix wording in "naming conventions" section
Diego Biurrun [Mon, 11 Feb 2013 17:39:12 +0000 (18:39 +0100)]
doc: developer: Fix wording in "naming conventions" section

6 years agobuild: Make library minor version visible in the Makefile
Diego Biurrun [Sun, 3 Feb 2013 14:03:08 +0000 (15:03 +0100)]
build: Make library minor version visible in the Makefile

This allows employing that number in library install commands.

6 years agodoc: developer: Add a note about reserved system name space
Diego Biurrun [Mon, 11 Feb 2013 17:53:33 +0000 (18:53 +0100)]
doc: developer: Add a note about reserved system name space

6 years agoopenbsd: Add minor number to shared library install name
Diego Biurrun [Sun, 3 Feb 2013 14:02:31 +0000 (15:02 +0100)]
openbsd: Add minor number to shared library install name

This is what the OpenBSD porter's manual describes as correct, cf.
http://www.openbsd.org/faq/ports/specialtopics.html#SharedLibs

6 years agox86: mpeg4qpel: Make movsxifnidn do the right thing
Daniel Kang [Mon, 11 Feb 2013 18:45:10 +0000 (13:45 -0500)]
x86: mpeg4qpel: Make movsxifnidn do the right thing

Fixes an instruction that does nothing by changing the
source to dword.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
6 years agoh264: Copy h264chroma dsp context to slice thread copies
Martin Storsjö [Mon, 11 Feb 2013 18:27:50 +0000 (20:27 +0200)]
h264: Copy h264chroma dsp context to slice thread copies

This fixes slice threading which seems to have been broken since
79dad2a93.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agoffv1enc: better heuristic to calculate initial states
Michael Niedermayer [Mon, 4 Feb 2013 16:33:07 +0000 (17:33 +0100)]
ffv1enc: better heuristic to calculate initial states

Slightly improves compression of 2pass files

Tested-by: "Peter B." <pb@das-werkstatt.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswscale: Disallow conversion to GBRP16
Martin Storsjö [Mon, 11 Feb 2013 11:37:29 +0000 (13:37 +0200)]
swscale: Disallow conversion to GBRP16

This reverts parts of d6d5ef5534d582, that didn't work right. (The
tests that were added failed on big endian, and the output looked
garbled on little endian as well.)

This is due to the fact that the intermediate scaling values (from
e.g. hScale8To19_c or hScale16To19_c) are stored as int32_t and
thus requires a separate output function, while yuv2gbrp_full_X_c
only interprets it as int16_t.

Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agocrc: Move static data table from header to .c file
Diego Biurrun [Sun, 3 Feb 2013 14:43:47 +0000 (15:43 +0100)]
crc: Move static data table from header to .c file

Having static data tables in header files is a potential source of trouble.

6 years agoavcodec/rectangle: Remove nonsense assert
Diego Biurrun [Fri, 8 Feb 2013 14:55:24 +0000 (15:55 +0100)]
avcodec/rectangle: Remove nonsense assert

6 years agolibfdk-aacenc: Actually check for upper bounds of cutoff
Derek Buitenhuis [Sat, 9 Feb 2013 19:03:02 +0000 (14:03 -0500)]
libfdk-aacenc: Actually check for upper bounds of cutoff

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agolibfdk-aacenc: Actually check for upper bounds of cutoff
Derek Buitenhuis [Sat, 9 Feb 2013 19:03:02 +0000 (14:03 -0500)]
libfdk-aacenc: Actually check for upper bounds of cutoff

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
6 years agoarm: Fall back to runtime cpu feature detection via /proc/cpuinfo
Martin Storsjö [Thu, 7 Feb 2013 08:54:20 +0000 (10:54 +0200)]
arm: Fall back to runtime cpu feature detection via /proc/cpuinfo

On recent android versions, /proc/self/auxw is unreadable
(unless the process is running running under the shell uid or
in debuggable mode, which makes it hard to notice). See
http://b.android.com/43055 and
https://android-review.googlesource.com/51271 for more information
about the issue.

This makes sure e.g. neon optimizations are enabled at runtime in
android apps even when built in release mode, if configured to
use the runtime detection.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agolavfi/amerge: make description consistent with documentation
Paul B Mahol [Mon, 11 Feb 2013 12:47:02 +0000 (12:47 +0000)]
lavfi/amerge: make description consistent with documentation

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoPrint mxf Universal Label if the user requested verbose logging.
Carl Eugen Hoyos [Mon, 11 Feb 2013 12:11:16 +0000 (13:11 +0100)]
Print mxf Universal Label if the user requested verbose logging.

Fixes ticket #2198

6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 11 Feb 2013 11:15:54 +0000 (12:15 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  sparc: dsputil_vis: Fix silly variable name search and replace typo

Conflicts:
libavcodec/sparc/dsputil_vis.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoevrcdec: fix wrong condition
Paul B Mahol [Mon, 11 Feb 2013 11:04:52 +0000 (11:04 +0000)]
evrcdec: fix wrong condition

Fixes CID980005 and CID980004.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoget_bits: return pointer to buffer that is the result of the alignment.
Ronald S. Bultje [Mon, 11 Feb 2013 00:46:07 +0000 (16:46 -0800)]
get_bits: return pointer to buffer that is the result of the alignment.

This allows more transparent mixing of get_bits and whole-byte access
without having to touch get_bits internals.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agobit_depth_template: don't depend on dsputil.h.
Ronald S. Bultje [Sun, 10 Feb 2013 23:59:22 +0000 (15:59 -0800)]
bit_depth_template: don't depend on dsputil.h.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMove ff_emulated_edge_mc prototypes to videodsp.
Ronald S. Bultje [Sun, 10 Feb 2013 23:59:21 +0000 (15:59 -0800)]
Move ff_emulated_edge_mc prototypes to videodsp.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoh264 intra pred: add missing includes.
Ronald S. Bultje [Sun, 10 Feb 2013 23:59:20 +0000 (15:59 -0800)]
h264 intra pred: add missing includes.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomlpdec: check ch_assign more completely
Michael Niedermayer [Sun, 10 Feb 2013 23:42:58 +0000 (00:42 +0100)]
mlpdec: check ch_assign more completely

Fixes CID970924

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosparc: dsputil_vis: Fix silly variable name search and replace typo
Diego Biurrun [Sun, 10 Feb 2013 21:03:48 +0000 (22:03 +0100)]
sparc: dsputil_vis: Fix silly variable name search and replace typo

6 years agolavfi/il: filter out hwaccels formats from the list of supported formats
Stefano Sabatini [Sun, 10 Feb 2013 19:57:44 +0000 (20:57 +0100)]
lavfi/il: filter out hwaccels formats from the list of supported formats

6 years agolavf/matroskaenc: provide more feedback in case of unsupported codec
Stefano Sabatini [Sun, 10 Feb 2013 17:02:59 +0000 (18:02 +0100)]
lavf/matroskaenc: provide more feedback in case of unsupported codec

Also return meaningful error code.

6 years agolavd/v4l2: fix error logic when enumerating standards
Stefano Sabatini [Sun, 10 Feb 2013 16:46:17 +0000 (17:46 +0100)]
lavd/v4l2: fix error logic when enumerating standards

Set ret to 0 before enumerating standards in v4l2_set_parameters(), avoid
use of uninitialized variable.

Regression introduced in 60950adc18fe145a235211e75da68ab07123fcaa.

6 years agotiff: dont leave geotag_count in an invalid state on errors.
Michael Niedermayer [Sun, 10 Feb 2013 19:24:22 +0000 (20:24 +0100)]
tiff: dont leave geotag_count in an invalid state on errors.

Fixes out of array reads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agotiff: check for failure in search_keyval()
Michael Niedermayer [Sun, 10 Feb 2013 19:17:33 +0000 (20:17 +0100)]
tiff: check for failure in search_keyval()

Fixes null pointer dereference

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agopictordec: fix cga palette index limit
Michael Niedermayer [Sun, 10 Feb 2013 17:31:05 +0000 (18:31 +0100)]
pictordec: fix cga palette index limit

Fixes out of array read

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoFix division by 0 due to audio frame size
Michael Niedermayer [Sun, 10 Feb 2013 17:15:33 +0000 (18:15 +0100)]
Fix division by 0 due to audio frame size

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodpx: include offset in the total_size calculation
Michael Niedermayer [Sun, 10 Feb 2013 16:54:00 +0000 (17:54 +0100)]
dpx: include offset in the  total_size calculation

Fixes out of array reads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agodpx: Fix rounding in 10bit total_size calculation
Michael Niedermayer [Sun, 10 Feb 2013 16:50:56 +0000 (17:50 +0100)]
dpx: Fix rounding in 10bit total_size calculation

This could have caused out of array reads

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agopcx: Add missing padding to scanline buffer
Michael Niedermayer [Sun, 10 Feb 2013 16:19:35 +0000 (17:19 +0100)]
pcx: Add missing padding to scanline buffer

Fixes out of array read

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agopcx: use init_get_bits8()
Michael Niedermayer [Sun, 10 Feb 2013 16:19:15 +0000 (17:19 +0100)]
pcx: use init_get_bits8()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavd/v4l2: implement consistent error handling
Stefano Sabatini [Sun, 10 Feb 2013 11:14:40 +0000 (12:14 +0100)]
lavd/v4l2: implement consistent error handling

In particular, avoid use of non-thread-safe strerror(), and store errno
before calling av_log().

6 years agotests: add fate-lavfi-il test
Stefano Sabatini [Sun, 10 Feb 2013 11:44:14 +0000 (12:44 +0100)]
tests: add fate-lavfi-il test

6 years agopcx: fix rounding in bytes_per_scanline check
Michael Niedermayer [Sun, 10 Feb 2013 15:52:04 +0000 (16:52 +0100)]
pcx: fix rounding in bytes_per_scanline check

Fixes out of array reads

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoSupport more atrac3-in-mkv samples.
Carl Eugen Hoyos [Sun, 10 Feb 2013 13:41:55 +0000 (14:41 +0100)]
Support more atrac3-in-mkv samples.

The mkv demuxer sometimes finds 12 bytes of realmedia
extradata after the matroska real audio properties.

6 years agoRevert "Merge commit 'db0a943266be29ff0596872ebb418dfed75d00de'"
Michael Niedermayer [Sun, 10 Feb 2013 13:27:57 +0000 (14:27 +0100)]
Revert "Merge commit 'db0a943266be29ff0596872ebb418dfed75d00de'"

This reverts commit d80820655362645ae1c65d457287d7d12c04a44f, reversing
changes made to 30085bd43e35acf931429dc445db5bc1869be022.

This is not needed

Requested-by: Marton Balint
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 10 Feb 2013 13:17:06 +0000 (14:17 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  sws: disable yuv2rgb warning for planar rgb.

Conflicts:
libswscale/yuv2rgb.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge commit '7b41c24c5fa221b55a9302efaf1a9eeb38b12551'
Michael Niedermayer [Sun, 10 Feb 2013 13:07:27 +0000 (14:07 +0100)]
Merge commit '7b41c24c5fa221b55a9302efaf1a9eeb38b12551'

* commit '7b41c24c5fa221b55a9302efaf1a9eeb38b12551':
  sws: dont enable chrSrcHSubSample for planar RGB

Conflicts:
libswscale/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>