OSDN Git Service

android-x86/external-ffmpeg.git
12 years agolatm: fix initialization on some streams when no extradata is available
Hendrik Leppkes [Thu, 22 Dec 2011 23:14:32 +0000 (00:14 +0100)]
latm: fix initialization on some streams when no extradata is available

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agox86inc: put basicnop under ifdef to prevent compile failure.
Clément Bœsch [Sat, 7 Jul 2012 20:48:41 +0000 (22:48 +0200)]
x86inc: put basicnop under ifdef to prevent compile failure.

This should fix the NASM box.

Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoswr/x86: 16bit integer mix functions need SSE2 not SSE
Michael Niedermayer [Sat, 7 Jul 2012 18:52:34 +0000 (20:52 +0200)]
swr/x86: 16bit integer mix functions need SSE2 not SSE

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 7 Jul 2012 18:29:43 +0000 (20:29 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mxfdec: replace x>>av_log2(sizeof(..)) by x/sizeof(..).
  x86: h264_intrapred: Don't add the 'd' suffix to the SPLATB_REG macro

Conflicts:
libavformat/mxfdec.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agox86: h264_intrapred: use newly introduced SPLAT* and PSHUFLW macros
Loren Merritt [Wed, 4 Jul 2012 13:32:16 +0000 (15:32 +0200)]
x86: h264_intrapred: use newly introduced SPLAT* and PSHUFLW macros

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agox86inc: try to put amdnop under ifdef to prevent compile failure
Michael Niedermayer [Sat, 7 Jul 2012 18:16:56 +0000 (20:16 +0200)]
x86inc: try to put amdnop under ifdef to prevent compile failure

based on similar amdnop usage in ffmpeg

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agovf_pp: dont pass NULL into pp, it would fail
Michael Niedermayer [Sat, 7 Jul 2012 17:14:51 +0000 (19:14 +0200)]
vf_pp: dont pass NULL into pp, it would fail

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agopp: check that the argument is not NULL as this is not supported
Michael Niedermayer [Sat, 7 Jul 2012 17:14:21 +0000 (19:14 +0200)]
pp: check that the argument is not NULL as this is not supported

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomxfdec: replace x>>av_log2(sizeof(..)) by x/sizeof(..).
Ronald S. Bultje [Wed, 4 Jul 2012 15:13:43 +0000 (08:13 -0700)]
mxfdec: replace x>>av_log2(sizeof(..)) by x/sizeof(..).

Also replace x>>av_log2(sizeof(..)) + 1 by x/sizeof(..). The +1 is
probably meant to emulate av_log2_ceil(sizeof(..)) in cases where ".."
is not a power of two.

12 years agodoc: update mono to stereo workaround example
Tim Nicholson [Tue, 3 Jul 2012 10:42:51 +0000 (11:42 +0100)]
doc: update mono to stereo workaround example

Now uses -filter_complex instead of deprecated lavfi/amovie

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agotools/bisect: rename to tools/bisect-create
Michael Niedermayer [Sat, 7 Jul 2012 12:49:44 +0000 (14:49 +0200)]
tools/bisect: rename to tools/bisect-create

Idea-by: Alexander Strasser
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agotools/bisect: rename temporary file and add it to git ignore
Michael Niedermayer [Tue, 3 Jul 2012 11:57:15 +0000 (13:57 +0200)]
tools/bisect: rename temporary file and add it to git ignore

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agotool/bisect: add some magic to make the bisect tool be useable when its not part...
Michael Niedermayer [Tue, 3 Jul 2012 11:53:26 +0000 (13:53 +0200)]
tool/bisect: add some magic to make the bisect tool be useable when its not part of a checkout

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agovc1: implement frame interlaced b-frame header parsing
Hendrik Leppkes [Mon, 23 Jan 2012 21:17:46 +0000 (22:17 +0100)]
vc1: implement frame interlaced b-frame header parsing

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolog: fix compilation failure on mingw due to reference to undefined set_color256
Michael Niedermayer [Sat, 7 Jul 2012 10:54:03 +0000 (12:54 +0200)]
log: fix compilation failure on mingw due to reference to undefined set_color256

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agocelp_math: use av_assert
Michael Niedermayer [Sat, 7 Jul 2012 10:34:04 +0000 (12:34 +0200)]
celp_math: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agocabac: use av_assert
Michael Niedermayer [Sat, 7 Jul 2012 10:33:51 +0000 (12:33 +0200)]
cabac: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavu: 256 color support
Paul B Mahol [Wed, 4 Jul 2012 17:22:16 +0000 (17:22 +0000)]
lavu: 256 color support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 7 Jul 2012 00:17:30 +0000 (02:17 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  configure: add functions for testing code fragments
  af_amix: avoid spurious EAGAIN.
  af_amix: return AVERROR(EAGAIN) when request_frame didn't produce output.
  af_amix: only consider negative return codes as errors.
  avconv: use only meaningful timestamps in start time check.
  avconv: fix the check for -ss as an output option.
  mss3: add forgotten 'static' qualifier for private table
  lavc: options: add planar names for request_sample_fmt
  flacdec: add planar output support
  flvdec: Treat all nellymoser versions as the same codec

Conflicts:
ffmpeg.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agotiffenc: PIX_FMT_GRAY8A support
Paul B Mahol [Fri, 6 Jul 2012 19:54:10 +0000 (19:54 +0000)]
tiffenc: PIX_FMT_GRAY8A support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agotiffenc: PIX_FMT_GRAY16LE support
Paul B Mahol [Fri, 6 Jul 2012 02:02:15 +0000 (02:02 +0000)]
tiffenc: PIX_FMT_GRAY16LE support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agotiffenc: merge common code
Paul B Mahol [Fri, 6 Jul 2012 02:00:32 +0000 (02:00 +0000)]
tiffenc: merge common code

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agotiffenc: use av_get_bits_per_pixel() to get bpp
Paul B Mahol [Fri, 6 Jul 2012 01:57:54 +0000 (01:57 +0000)]
tiffenc: use av_get_bits_per_pixel() to get bpp

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agotiffenc: use av_pix_fmt_descriptors to set bpp_tab[]
Paul B Mahol [Fri, 6 Jul 2012 01:49:22 +0000 (01:49 +0000)]
tiffenc: use av_pix_fmt_descriptors to set bpp_tab[]

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agotiffenc: simplify calculation of bpp_tab_size
Paul B Mahol [Fri, 6 Jul 2012 01:44:03 +0000 (01:44 +0000)]
tiffenc: simplify calculation of bpp_tab_size

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agox86: h264_intrapred: Don't add the 'd' suffix to the SPLATB_REG macro
Martin Storsjö [Fri, 6 Jul 2012 07:53:43 +0000 (10:53 +0300)]
x86: h264_intrapred: Don't add the 'd' suffix to the SPLATB_REG macro

The SPLATB_REG macro already adds the 'd' suffix internally.

This fixes building on Win64, which has been broken since 878e66902.

This worked for unix, where r2 happened to be rdx in this case, which
with the first suffix rdxd was mapped to eax, and eaxd is defined back
to eax. On win64 however, r2 happened to be R8 in this case, and
R8d mapps to R8D just fine, but there's no mapping for R8Dd to anything.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoconfigure: add functions for testing code fragments
Mans Rullgard [Wed, 4 Jul 2012 22:06:25 +0000 (23:06 +0100)]
configure: add functions for testing code fragments

This simplifies testing arbitrary code fragments within a function
body.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoffmpeg: poll filters even after -t limit.
Nicolas George [Thu, 5 Jul 2012 19:00:00 +0000 (21:00 +0200)]
ffmpeg: poll filters even after -t limit.

If not, frames can still arrive to the sink and accumulate.
The frames past recording time will be ignored in do_*_out.

12 years agoFix destination row striding in altivec_yuv2_bgr24.
Pavel Koshevoy [Thu, 5 Jul 2012 23:00:59 +0000 (17:00 -0600)]
Fix destination row striding in altivec_yuv2_bgr24.

Misaligned row artifacts showed up when a 624x352 frame was converted
to BGR24 format.  When advancing to the next row the destination linesize
was added to the last output pointer position which was not linesize aligned,
resulting in a distorted picture.

Signed-off-by: Pavel Koshevoy <pavel@apple.aragog.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agocosmetics: various spelling fixes
Lou Logan [Thu, 5 Jul 2012 23:38:53 +0000 (15:38 -0800)]
cosmetics: various spelling fixes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoaf_amix: avoid spurious EAGAIN.
Anton Khirnov [Thu, 5 Jul 2012 19:51:44 +0000 (21:51 +0200)]
af_amix: avoid spurious EAGAIN.

Input on/off state can change in request_samples(), which can result in
a state where only the first input is active. get_available_samples()
will then return 0, and request_frame() will fail with EAGAIN even
though there is data on the single active input.

Take this into account and check the number of active inputs again after
calling request_samples().

12 years agoaf_amix: return AVERROR(EAGAIN) when request_frame didn't produce output.
Anton Khirnov [Thu, 5 Jul 2012 18:28:10 +0000 (20:28 +0200)]
af_amix: return AVERROR(EAGAIN) when request_frame didn't produce output.

0 should only be returned when there was at least one output frame.

12 years agoaf_amix: only consider negative return codes as errors.
Anton Khirnov [Wed, 4 Jul 2012 16:55:14 +0000 (18:55 +0200)]
af_amix: only consider negative return codes as errors.

12 years agoavconv: use only meaningful timestamps in start time check.
Anton Khirnov [Wed, 4 Jul 2012 00:56:38 +0000 (02:56 +0200)]
avconv: use only meaningful timestamps in start time check.

12 years agoavconv: fix the check for -ss as an output option.
Anton Khirnov [Wed, 4 Jul 2012 00:53:25 +0000 (02:53 +0200)]
avconv: fix the check for -ss as an output option.

start time is already substracted from the frame timestamp, so it needs
to be checked against 0, not start time.

12 years agodoc/indevs/iec61883: document requirements for iec61883 device
Georg Lippitsch [Thu, 5 Jul 2012 14:00:51 +0000 (16:00 +0200)]
doc/indevs/iec61883: document requirements for iec61883 device

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years agoconfigure: cleanup libiec61883 code, allow enabling via command line
Michael Niedermayer [Thu, 5 Jul 2012 12:02:53 +0000 (14:02 +0200)]
configure: cleanup libiec61883 code, allow enabling via command line

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years agomss3: add forgotten 'static' qualifier for private table
Kostya Shishkov [Fri, 6 Jul 2012 07:22:46 +0000 (09:22 +0200)]
mss3: add forgotten 'static' qualifier for private table

12 years agobmv: add CODEC_CAP_DR1
Paul B Mahol [Fri, 6 Jul 2012 01:16:40 +0000 (01:16 +0000)]
bmv: add CODEC_CAP_DR1

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agolpc: use default number of passes when lpc_passes is invalid
Michael Niedermayer [Fri, 6 Jul 2012 01:59:06 +0000 (03:59 +0200)]
lpc: use default number of passes when lpc_passes is invalid

Should fix valgrind failure (uninitialized vars)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agotiffdec: PIX_FMT_GRAY16LE support
Paul B Mahol [Fri, 6 Jul 2012 01:09:19 +0000 (01:09 +0000)]
tiffdec: PIX_FMT_GRAY16LE support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agolavc: fix shared build after dnxhd merge.
Nicolas George [Thu, 5 Jul 2012 22:49:09 +0000 (00:49 +0200)]
lavc: fix shared build after dnxhd merge.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoBlowfish: restructure/simplify code a bit.
Michael Niedermayer [Thu, 5 Jul 2012 23:37:44 +0000 (01:37 +0200)]
Blowfish: restructure/simplify code a bit.

Very slightly faster (2% or so)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoadd side data to indicate the amount of samples to skip at the begin and end
Michael Niedermayer [Wed, 4 Jul 2012 19:58:48 +0000 (21:58 +0200)]
add side data to indicate the amount of samples to skip at the begin and end

Reviewed-by: Nicolas George <nicolas.george@normalesup.org>
Reveiwed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agofate: increase fuzzyness for ac3 encode for 3dnow
Michael Niedermayer [Thu, 5 Jul 2012 20:28:37 +0000 (22:28 +0200)]
fate: increase fuzzyness for ac3 encode for 3dnow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agopaf: add forgotten CODEC_CAP_DR1
Paul B Mahol [Fri, 6 Jul 2012 00:19:12 +0000 (00:19 +0000)]
paf: add forgotten CODEC_CAP_DR1

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agolavfi/buffersink: fix doxy, remove "video" reference
Stefano Sabatini [Thu, 5 Jul 2012 23:10:28 +0000 (01:10 +0200)]
lavfi/buffersink: fix doxy, remove "video" reference

The file contains the code for the audio buffersink as well.

12 years agolavc: options: add planar names for request_sample_fmt
Mans Rullgard [Fri, 29 Jun 2012 14:23:03 +0000 (15:23 +0100)]
lavc: options: add planar names for request_sample_fmt

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoflacdec: add planar output support
Mans Rullgard [Mon, 2 Jul 2012 23:29:30 +0000 (00:29 +0100)]
flacdec: add planar output support

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Thu, 5 Jul 2012 19:23:37 +0000 (21:23 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  qdm2: remove broken and disabled dump_context() debug function
  x86: h264_intrapred: use newly introduced SPLAT* and PSHUFLW macros
  x86inc: add SPLATB_LOAD, SPLATB_REG, PSHUFLW macros
  x86inc: modify ALIGN to not generate long nops on i586
  x86: h264_intrapred: port to cpuflag macros
  avplay: update input filter pointer when the filtergraph is reset.
  avconv: fix parsing of -force_key_frames option.
  h264: use templates to avoid excessive inlining
  xtea: Make the count parameter match the documentation
  blowfish: Make the count parameter match the documentation
  mpegvideo: Don't use ff_mspel_motion() for vc1
  xtea: invert branch and loop precedence
  blowfish: invert branch and loop precedence
  flvdec: optionally trust the metadata
  avconv: Set audio filter time base to the sample rate
  vp8: Add ifdef guards around the sse2 loopfilter in the sse2slow branch too

Conflicts:
ffmpeg.c
ffplay.c
libavcodec/h264.c
libavcodec/mpegvideo_common.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoflvdec: Treat all nellymoser versions as the same codec
Martin Storsjö [Thu, 5 Jul 2012 06:47:29 +0000 (09:47 +0300)]
flvdec: Treat all nellymoser versions as the same codec

This avoids creating new AVStreams for them when switching between
different variants of them, since we can handle changes between
different sample rates of nellymoser within the same stream.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoMerge branch 'mxfenc_improvements' of https://github.com/mbouron/FFmpeg
Michael Niedermayer [Thu, 5 Jul 2012 18:40:32 +0000 (20:40 +0200)]
Merge branch 'mxfenc_improvements' of https://github.com/mbouron/FFmpeg

* 'mxfenc_improvements' of https://github.com/mbouron/FFmpeg:
  mxfenc: support dnxhd codec
  mxfenc: support smpte dv codec

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoh264: print error on unsupported seperate color planes
Michael Niedermayer [Thu, 5 Jul 2012 17:12:09 +0000 (19:12 +0200)]
h264: print error on unsupported seperate color planes

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoqdm2: remove broken and disabled dump_context() debug function
Diego Biurrun [Thu, 5 Jul 2012 11:20:57 +0000 (13:20 +0200)]
qdm2: remove broken and disabled dump_context() debug function

12 years agox86: h264_intrapred: use newly introduced SPLAT* and PSHUFLW macros
Diego Biurrun [Wed, 4 Jul 2012 13:32:16 +0000 (15:32 +0200)]
x86: h264_intrapred: use newly introduced SPLAT* and PSHUFLW macros

12 years agox86inc: add SPLATB_LOAD, SPLATB_REG, PSHUFLW macros
Loren Merritt [Wed, 4 Jul 2012 11:07:49 +0000 (11:07 +0000)]
x86inc: add SPLATB_LOAD, SPLATB_REG, PSHUFLW macros

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agox86inc: modify ALIGN to not generate long nops on i586
Loren Merritt [Tue, 3 Jul 2012 17:51:43 +0000 (17:51 +0000)]
x86inc: modify ALIGN to not generate long nops on i586

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agox86: h264_intrapred: port to cpuflag macros
Diego Biurrun [Tue, 3 Jul 2012 23:07:42 +0000 (01:07 +0200)]
x86: h264_intrapred: port to cpuflag macros

12 years agoExtend -codecs output.
Carl Eugen Hoyos [Thu, 5 Jul 2012 14:46:19 +0000 (16:46 +0200)]
Extend -codecs output.

Allow to show different supported multi-threading methods for an
encoder/decoder pair.

Fixes ticket #1512

12 years agoswr/x86: 10l, missed some SSE2 instructions in code marked as SSE.
Michael Niedermayer [Thu, 5 Jul 2012 13:17:39 +0000 (15:17 +0200)]
swr/x86: 10l, missed some SSE2 instructions in code marked as SSE.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoconfigure: dont blindly enable iec61883
Michael Niedermayer [Thu, 5 Jul 2012 11:42:25 +0000 (13:42 +0200)]
configure: dont blindly enable iec61883

This should fix a configure failure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agomxfenc: support dnxhd codec
Matthieu Bouron [Mon, 28 May 2012 22:45:41 +0000 (00:45 +0200)]
mxfenc: support dnxhd codec

12 years agomxfenc: support smpte dv codec
Matthieu Bouron [Sat, 26 May 2012 16:09:47 +0000 (18:09 +0200)]
mxfenc: support smpte dv codec

After some internal talks it seems the code is similar to what is in FFmbc
by Baptiste Coudurier; Baptiste accepted to relicense the similiar chunks
from GPL to LGPL.

12 years agoavplay: update input filter pointer when the filtergraph is reset.
Anton Khirnov [Wed, 4 Jul 2012 09:35:18 +0000 (11:35 +0200)]
avplay: update input filter pointer when the filtergraph is reset.

Fixes an invalid read on size change.

12 years agoavconv: fix parsing of -force_key_frames option.
Reimar Döffinger [Mon, 30 Apr 2012 20:48:42 +0000 (22:48 +0200)]
avconv: fix parsing of -force_key_frames option.

Currently it always exits with an error when more than
one position is specified.

CC: libav-stable@libav.org
12 years agoFireWire DV/HDV input device using libiec61883
Georg Lippitsch [Mon, 23 Apr 2012 14:01:17 +0000 (16:01 +0200)]
FireWire DV/HDV input device using libiec61883

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
12 years agoh264: use templates to avoid excessive inlining
Mans Rullgard [Tue, 3 Jul 2012 22:16:11 +0000 (23:16 +0100)]
h264: use templates to avoid excessive inlining

Instead of inlining everything into ff_h264_hl_decode_mb(), use
explicit templating to create versions of the called functions
with constant parameters filled in.  This greatly speeds up
compilation of h264.c and reduces the code size without any
measurable impact on performance.

Compilation time for h264.c on an i7 goes from 30s to 5.5s.
Code size is reduced by 430kB.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoOptimization of MP3 decoders for MIPS
Nedeljko Babic [Mon, 2 Jul 2012 12:20:24 +0000 (14:20 +0200)]
Optimization of MP3 decoders for MIPS

MP3 fixed and floating point decoders are optimized
 for MIPS architecture.

Signed-off-by: Nedeljko Babic <nbabic@mips.com>
Reviewed-by: Vitor Sessak <vitor1001@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge git://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-Encoder
Michael Niedermayer [Thu, 5 Jul 2012 10:15:41 +0000 (12:15 +0200)]
Merge git://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-Encoder

* git://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-Encoder:
  libopenjpegdec: add support for decoding YUV420/422/444P12/14
  libopenjpegenc: cosmetics: reorder pix_fmts
  libopenjpegenc: add support for YUV420/422/444P12/14

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoxtea: Make the count parameter match the documentation
Samuel Pitoiset [Thu, 5 Jul 2012 09:19:13 +0000 (11:19 +0200)]
xtea: Make the count parameter match the documentation

Previously it was interpreted as number of bytes, while the
documentation stated that it was the number of 8 byte blocks.
This makes it behave similarly to the existing AES code.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoblowfish: Make the count parameter match the documentation
Samuel Pitoiset [Thu, 5 Jul 2012 09:33:54 +0000 (11:33 +0200)]
blowfish: Make the count parameter match the documentation

Previously it was interpreted as number of bytes, while the
documentation stated that it was the number of 8 byte blocks.
This makes it behave similarly to the existing AES code.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agompegvideo: Don't use ff_mspel_motion() for vc1
Michael Niedermayer [Sun, 20 Nov 2011 16:19:25 +0000 (17:19 +0100)]
mpegvideo: Don't use ff_mspel_motion() for vc1

Using ff_mspel_motion assumes that s (a MpegEncContext
poiinter) really is a Wmv2Context.

This fixes crashes in error resilience on vc1/wmv3 videos.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolavf/file: cosmetic: Use "not" instead of "equals zero"
Alexander Strasser [Sat, 30 Jun 2012 22:47:49 +0000 (00:47 +0200)]
lavf/file: cosmetic: Use "not" instead of "equals zero"

  This is more similar to the "overall" FFmpeg coding style.

12 years agolavf/file: cosmetic: Remove superfluous ternary operator
Alexander Strasser [Sat, 30 Jun 2012 22:37:52 +0000 (00:37 +0200)]
lavf/file: cosmetic: Remove superfluous ternary operator

12 years agodoc/fate: Rework examples to a section of its own
Alexander Strasser [Fri, 29 Jun 2012 00:35:56 +0000 (02:35 +0200)]
doc/fate: Rework examples to a section of its own

  Make it easier to spot the example. This way it can already be
discovered by scanning the table of contents.

12 years agodoc/fate: Add hint for debugging connection to server
Alexander Strasser [Fri, 29 Jun 2012 00:31:35 +0000 (02:31 +0200)]
doc/fate: Add hint for debugging connection to server

12 years agodoc/fate: Add missing @file command
Alexander Strasser [Fri, 29 Jun 2012 00:25:27 +0000 (02:25 +0200)]
doc/fate: Add missing @file command

  Make the document more consistent.

12 years agodoc/fate: Use more commonly used terms
Alexander Strasser [Fri, 29 Jun 2012 00:13:01 +0000 (02:13 +0200)]
doc/fate: Use more commonly used terms

  It might be easier to understand for some people and is a bit more
in line with e.g. OpenSSH documentation. The meaning of the text stays
exactly the same.

12 years agodoc/fate: Add email address for contacting the FATE admin
Alexander Strasser [Fri, 29 Jun 2012 00:06:46 +0000 (02:06 +0200)]
doc/fate: Add email address for contacting the FATE admin

12 years agoxtea: invert branch and loop precedence
Luca Barbato [Thu, 5 Jul 2012 07:52:04 +0000 (09:52 +0200)]
xtea: invert branch and loop precedence

Should slightly improve performance depending on the compiler used.

12 years agoblowfish: invert branch and loop precedence
Luca Barbato [Thu, 5 Jul 2012 07:50:59 +0000 (09:50 +0200)]
blowfish: invert branch and loop precedence

Should slightly improve performance depending on the compiler used.

12 years agoflvdec: optionally trust the metadata
Luca Barbato [Wed, 4 Jul 2012 11:33:41 +0000 (13:33 +0200)]
flvdec: optionally trust the metadata

In certain conditions video or audio frames might appear way later in the
stream.

12 years agoavconv: Set audio filter time base to the sample rate
Martin Storsjö [Sat, 30 Jun 2012 08:26:11 +0000 (11:26 +0300)]
avconv: Set audio filter time base to the sample rate

If the output frame size is smaller than the input sample rate,
and the input stream time base corresponds exactly to the input
frame size (getting input packet timestamps like 0, 1, 2, 3, 4 etc),
the output timestamps from the filter will be like
0, 1, 2, 3, 4, 4, 5 ..., leadning to non-monotone timestamps later.

A concrete example is input mp3 data having frame sizes of 1152
samples, transcoded to aac with 1024 sample frames.

By setting the audio filter time base to the sample rate, we will
get sensible timestamps for all output packets, regardless of
the ratio between the input and output frame sizes.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agovp8: Add ifdef guards around the sse2 loopfilter in the sse2slow branch too
Martin Storsjö [Wed, 4 Jul 2012 19:25:53 +0000 (22:25 +0300)]
vp8: Add ifdef guards around the sse2 loopfilter in the sse2slow branch too

This was missed in the the previous commit in 70a1c800.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoInstall libavutil/version.h
Carl Eugen Hoyos [Thu, 5 Jul 2012 06:21:49 +0000 (08:21 +0200)]
Install libavutil/version.h

Fixes ticket #1513

12 years agoPAF demuxer and decoder
Paul B Mahol [Tue, 27 Mar 2012 19:27:53 +0000 (19:27 +0000)]
PAF demuxer and decoder

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agosws/x86: add av_assert() to ensure 16bit code is used with 16bit data
Michael Niedermayer [Thu, 5 Jul 2012 02:39:11 +0000 (04:39 +0200)]
sws/x86: add av_assert() to ensure 16bit code is used with 16bit data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agosws/x86: add some forgotten 12bit planar yuv cases
Michael Niedermayer [Thu, 5 Jul 2012 02:37:12 +0000 (04:37 +0200)]
sws/x86: add some forgotten 12bit planar yuv cases

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agonut: add 12/14 bit yuv to nut/raw
Carl Eugen Hoyos [Thu, 5 Jul 2012 02:20:58 +0000 (04:20 +0200)]
nut: add 12/14 bit yuv to nut/raw

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agosanm: remove code duplication
Paul B Mahol [Wed, 4 Jul 2012 17:45:13 +0000 (17:45 +0000)]
sanm: remove code duplication

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agosanm: replace conditions in for loops with more common version
Paul B Mahol [Wed, 4 Jul 2012 17:37:31 +0000 (17:37 +0000)]
sanm: replace conditions in for loops with more common version

Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years agosws: support 12&14 bit planar colorspaces
Michael Niedermayer [Tue, 3 Jul 2012 02:10:11 +0000 (04:10 +0200)]
sws: support 12&14 bit planar colorspaces

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoblowfish.h: include author attribution
Michael Niedermayer [Wed, 4 Jul 2012 19:11:39 +0000 (21:11 +0200)]
blowfish.h: include author attribution

Reviewed-by: Clément Bœsch <ubitux@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoxtea.h: include author attribution
Michael Niedermayer [Wed, 4 Jul 2012 19:12:01 +0000 (21:12 +0200)]
xtea.h: include author attribution

Reviewed-by: Clément Bœsch <ubitux@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 4 Jul 2012 18:39:50 +0000 (20:39 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master: (29 commits)
  lavfi: reclassify showfiltfmts as a TESTPROG
  graph2dot: fix printf format specifier
  swscale: yuv2planeX 8bit >=sse2 functions need aligned stack on x86-32.
  vp8: loopfilter >=sse2 functions need aligned stack on x86-32.
  amr: remove shift out of the AMR_BIT() macro.
  dsputilenc: group yasm and inline asm function pointer assignment.
  mov: use forward declaration of a function instead of a table.
  Clarify Doxygen comment for FF_API_* #defines.
  configure: simplify get_version()
  Create version.h headers for libraries that lack them
  gitignore: Use full path instead of relative path to specify patterns
  mpegvideo: remove VLAs
  Add XTEA encryption support in libavutil
  Add Blowfish encryption support in libavutil
  eval: Add the isinf() function and tests for it
  flacdec: move lpc filter to flacdsp
  flacdec: split off channel decorrelation as flacdsp
  avplay: Add an option for not limiting the input buffer size
  FATE: add a test for WMA cover art.
  FATE: add a test for apetag cover art
  ...

Conflicts:
.gitignore
configure
ffplay.c
libavcodec/Makefile
libavcodec/error_resilience.c
libavcodec/mpegvideo.c
libavcodec/ratecontrol.c
libavdevice/avdevice.h
libavfilter/Makefile
libavfilter/filtfmts.c
libavfilter/version.h
libavformat/mov.c
libavformat/version.h
libavutil/Makefile
libavutil/avutil.h
libavutil/version.h
libswscale/swscale.h
libswscale/x86/swscale_mmx.c
tests/fate/libavutil.mak
tests/lavfi-regression.sh
tools/graph2dot.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodpx: sanitize aspect ratio.
Nicolas George [Mon, 18 Jun 2012 09:39:26 +0000 (11:39 +0200)]
dpx: sanitize aspect ratio.

Fixes some samples where the ratio is declared as -1/-1.

12 years agolavfi: reclassify showfiltfmts as a TESTPROG
Mans Rullgard [Wed, 4 Jul 2012 15:51:10 +0000 (16:51 +0100)]
lavfi: reclassify showfiltfmts as a TESTPROG

This tool uses lavfi internal symbols not accessible in shared
libraries.  TESTPROGS are linked statically to allow them use of
library internals not normally exported.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agograph2dot: fix printf format specifier
Diego Biurrun [Wed, 4 Jul 2012 14:55:13 +0000 (16:55 +0200)]
graph2dot: fix printf format specifier

tools/graph2dot.c:85: warning: format ‘%lld’ expects type ‘long long int’, but argument 4 has type ‘int’

12 years agoswscale: yuv2planeX 8bit >=sse2 functions need aligned stack on x86-32.
Martin Storsjö [Wed, 4 Jul 2012 04:11:23 +0000 (21:11 -0700)]
swscale: yuv2planeX 8bit >=sse2 functions need aligned stack on x86-32.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years agovp8: loopfilter >=sse2 functions need aligned stack on x86-32.
Martin Storsjö [Wed, 4 Jul 2012 04:11:36 +0000 (21:11 -0700)]
vp8: loopfilter >=sse2 functions need aligned stack on x86-32.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>