]> git.sesse.net Git - ffmpeg/log
ffmpeg
12 years agolavfi: fix mp and mandelbrot descriptions to make them complete sentences
Stefano Sabatini [Fri, 20 Jan 2012 13:16:49 +0000 (14:16 +0100)]
lavfi: fix mp and mandelbrot descriptions to make them complete sentences

This is consistent with the other filter descriptions.

12 years agobase64: more thorough decode tests.
Reimar Döffinger [Fri, 20 Jan 2012 22:26:10 +0000 (23:26 +0100)]
base64: more thorough decode tests.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoAdd a --valgrind configure option.
Reimar Döffinger [Fri, 20 Jan 2012 19:42:31 +0000 (20:42 +0100)]
Add a --valgrind configure option.

If specified runs "make fate" through valgrind using the
given valgrind binary.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoac3dec: Move center&surround mix level tables to parser.
Michael Niedermayer [Wed, 18 Jan 2012 23:06:03 +0000 (00:06 +0100)]
ac3dec: Move center&surround mix level tables to parser.

That way all mix levels as exported by the parser
will have the same meaning.

Previously the 3bit center mix level for eac3 was
used to index in a 4 entry table leading to out of array reads.
this change removes the table and offsets the ac3 variable by 4
so it matches the meanings for eac3 except the reserved case.
The reserved case is then explicitly handled.

Idea-by: Justin Ruggles <justin.ruggles@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodeshake: variable used uninitialized
Ray Simard [Sat, 21 Jan 2012 02:19:46 +0000 (18:19 -0800)]
deshake: variable used uninitialized

Sometimes the scan finds nothing that qualifies for addition to
the array and pos is zero after the loops.  The code forces pos to
1 and the array is then processed as if it had one valid element in it,
producing some amusing but not very useful results.

I don't see the rationale for this.  If pos is zero coming out of the
loops, the only appropriate thing to do is set t->angle to zero.  The
attached patch does that.  It's worked properly in several tests so far.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobase64: Only run benchmark when "-t" is specified.
Michael Niedermayer [Sat, 21 Jan 2012 04:11:19 +0000 (05:11 +0100)]
base64: Only run benchmark when "-t" is specified.

As the test is run during fate and the benchmark is useless for fate
this very slightly speeds up fate. Its also consistent with the other
tests.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobase64: fix little typo
Michael Niedermayer [Sat, 21 Jan 2012 01:09:50 +0000 (02:09 +0100)]
base64: fix little typo

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 21 Jan 2012 00:33:31 +0000 (01:33 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  Add a tool that uses avio to read and write, doing a plain copy of data
  ARM: fix build with FFT enabled and MDCT disabled
  lavf: force single-threaded decoding in avformat_find_stream_info
  avidec: migrate last of lavf from FF_ER_* to AV_EF_*
  avserver: fix build after the next bump.

Conflicts:
libavformat/Makefile
libavformat/avidec.c
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobase64: add a benchmark for a pure syntax check.
Michael Niedermayer [Fri, 20 Jan 2012 23:32:52 +0000 (00:32 +0100)]
base64: add a benchmark for a pure syntax check.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobase64: simplify end handling in av_base64_encode()
Michael Niedermayer [Fri, 20 Jan 2012 21:56:18 +0000 (22:56 +0100)]
base64: simplify end handling in av_base64_encode()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobase64: optimize av_base64_encode()
Michael Niedermayer [Fri, 20 Jan 2012 21:46:14 +0000 (22:46 +0100)]
base64: optimize av_base64_encode()

This makes the code 2-3 times as fast

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agobase64: add benchmark
Michael Niedermayer [Fri, 20 Jan 2012 21:45:51 +0000 (22:45 +0100)]
base64: add benchmark

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoSlightly optimize base64 encode.
Reimar Döffinger [Fri, 20 Jan 2012 21:16:30 +0000 (22:16 +0100)]
Slightly optimize base64 encode.

Move handling of last byte outside of innermost loop.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoOptimize output buffer size check in base64 decode.
Reimar Döffinger [Fri, 20 Jan 2012 21:14:20 +0000 (22:14 +0100)]
Optimize output buffer size check in base64 decode.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoMinor optimization of base64 decode.
Reimar Döffinger [Fri, 20 Jan 2012 21:02:32 +0000 (22:02 +0100)]
Minor optimization of base64 decode.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoAdd a tool that uses avio to read and write, doing a plain copy of data
Martin Storsjö [Thu, 19 Jan 2012 12:01:19 +0000 (14:01 +0200)]
Add a tool that uses avio to read and write, doing a plain copy of data

It also optionally can throttle its operation to a particular
speed, to simulate realtime writing.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoopt: Fix "libavutil/opt.c:811:20: warning: initialization discards ‘const’ qualifier...
Michael Niedermayer [Fri, 20 Jan 2012 19:27:09 +0000 (20:27 +0100)]
opt: Fix "libavutil/opt.c:811:20: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default]"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoARM: fix build with FFT enabled and MDCT disabled
Felipe Contreras [Fri, 20 Jan 2012 16:01:07 +0000 (16:01 +0000)]
ARM: fix build with FFT enabled and MDCT disabled

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoffprobe: increase precision for the shown float values
Stefano Sabatini [Thu, 19 Jan 2012 00:46:03 +0000 (01:46 +0100)]
ffprobe: increase precision for the shown float values

12 years agoffprobe: fix value_string() prefix printing for values with negative logarithm
Stefano Sabatini [Thu, 19 Jan 2012 00:34:30 +0000 (01:34 +0100)]
ffprobe: fix value_string() prefix printing for values with negative logarithm

The index for the binary_unit_prefixes array is expected to be positive,
so avoid to use negative indexes for accessing it.

12 years agoffprobe: reindent after previous commit
Stefano Sabatini [Wed, 18 Jan 2012 18:28:31 +0000 (19:28 +0100)]
ffprobe: reindent after previous commit

12 years agoffprobe: factorize common code in value_string()
Stefano Sabatini [Wed, 18 Jan 2012 18:27:53 +0000 (19:27 +0100)]
ffprobe: factorize common code in value_string()

12 years agoffmpeg: remove unused and commented variable OutputStream.sync_ipts
Stefano Sabatini [Tue, 17 Jan 2012 12:43:34 +0000 (13:43 +0100)]
ffmpeg: remove unused and commented variable OutputStream.sync_ipts

12 years agolavf: force single-threaded decoding in avformat_find_stream_info
Janne Grunau [Wed, 18 Jan 2012 19:32:32 +0000 (20:32 +0100)]
lavf: force single-threaded decoding in avformat_find_stream_info

The H.264 decoder needs SPS and PPS for initialization during
multi-threaded decoding. When probed single-threaded SPS and PPS are
copied to extradata and are available for proper initialization of
the decoder before the first frame is decoded.

12 years agoavidec: migrate last of lavf from FF_ER_* to AV_EF_*
Dustin Brody [Wed, 18 Jan 2012 09:16:42 +0000 (04:16 -0500)]
avidec: migrate last of lavf from FF_ER_* to AV_EF_*

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavserver: fix build after the next bump.
Anton Khirnov [Thu, 12 Jan 2012 08:51:23 +0000 (09:51 +0100)]
avserver: fix build after the next bump.

12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Fri, 20 Jan 2012 01:14:54 +0000 (02:14 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mpeg12: check for available bits to avoid an infinite loop
  fate: add some shorthands to run groups of tests
  fate: Give some tests more sensible names.
  cosmetics: Rename ffsink to avsink.

Conflicts:
avconv.c
cmdutils.c
cmdutils.h
ffmpeg.c
ffplay.c
tests/fate/audio.mak
tests/fate/demux.mak
tests/fate/dpcm.mak
tests/fate/image.mak
tests/fate/lossless-audio.mak
tests/fate/lossless-video.mak
tests/fate/microsoft.mak
tests/fate/pcm.mak
tests/fate/real.mak
tests/fate/screen.mak
tests/fate/video.mak
tests/fate/voice.mak
tests/fate/wma.mak

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavfi: add missing periods in descriptions.
Clément Bœsch [Thu, 19 Jan 2012 23:16:27 +0000 (00:16 +0100)]
lavfi: add missing periods in descriptions.

12 years agocmdutils: include type in filter list.
Nicolas George [Thu, 19 Jan 2012 19:50:44 +0000 (20:50 +0100)]
cmdutils: include type in filter list.

12 years agocmdutils: media type to letter conversion in a separate function.
Nicolas George [Thu, 19 Jan 2012 19:50:30 +0000 (20:50 +0100)]
cmdutils: media type to letter conversion in a separate function.

12 years agoChanged indexing in libopenjpeg to shorten lines
Michael Bradshaw [Thu, 19 Jan 2012 22:15:56 +0000 (23:15 +0100)]
Changed indexing in libopenjpeg to shorten lines

12 years agoSupport gray8a encoding with libopenjpeg.
Carl Eugen Hoyos [Thu, 19 Jan 2012 22:13:48 +0000 (23:13 +0100)]
Support gray8a encoding with libopenjpeg.

Reviewed-by: Michael Bradshaw
Reviewed-by: Paul B Mahol
12 years agoSimplify 32bit png decoding.
Carl Eugen Hoyos [Thu, 19 Jan 2012 22:11:53 +0000 (23:11 +0100)]
Simplify 32bit png decoding.

12 years agoSupport encoding 16bit pixel formats to sgi.
Carl Eugen Hoyos [Thu, 19 Jan 2012 22:09:17 +0000 (23:09 +0100)]
Support encoding 16bit pixel formats to sgi.

12 years agoSimplify 32bit pam decoding.
Carl Eugen Hoyos [Thu, 19 Jan 2012 22:08:12 +0000 (23:08 +0100)]
Simplify 32bit pam decoding.

Reviewed-by: Paul B Mahol
12 years agoSimplify PIX_FMT_RGB555LE selection in targa decoder.
Carl Eugen Hoyos [Thu, 19 Jan 2012 22:03:21 +0000 (23:03 +0100)]
Simplify PIX_FMT_RGB555LE selection in targa decoder.

Suggested by Jean First.

12 years agoSimplify targa decoding on big endian.
Carl Eugen Hoyos [Thu, 19 Jan 2012 22:02:27 +0000 (23:02 +0100)]
Simplify targa decoding on big endian.

12 years agolibcelt: configure: check for recent version.
Nicolas George [Thu, 19 Jan 2012 11:55:54 +0000 (12:55 +0100)]
libcelt: configure: check for recent version.

12 years agoAdd "S263" FourCC
ami_stuff [Thu, 19 Jan 2012 13:16:41 +0000 (14:16 +0100)]
Add "S263" FourCC

fixes ticket #923

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoDNxHD: frame multithreading
Javier Cabezas [Thu, 19 Jan 2012 01:06:29 +0000 (02:06 +0100)]
DNxHD: frame multithreading

Signed-off-by: Javier Cabezas <jcabgz@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agompeg12: check for available bits to avoid an infinite loop
Jindřich Makovička [Wed, 18 Jan 2012 21:07:22 +0000 (22:07 +0100)]
mpeg12: check for available bits to avoid an infinite loop

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agowmalossless: Fix incompatoble pointer type warnings
Michael Niedermayer [Thu, 19 Jan 2012 07:51:56 +0000 (08:51 +0100)]
wmalossless: Fix incompatoble pointer type warnings

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

* qatar/master:
  avprobe, cmdutils: K&R formatting cosmetics
  tests: K&R formatting cosmetics for test programs
  lavf: free packets for muxers implementing interleave_packet().
  lavf: fix and extend av_interleaved_write_frame() doxy.
  mov: Remove dead stores for spherical coordinates for channel position.
  error_resilience: K&R formatting cosmetics
  RELEASE_NOTES: mention hiding private symbols in shared builds.
  RELEASE_NOTES: mention some notable API changes in 0.8

Conflicts:
cmdutils.h
doc/RELEASE_NOTES
ffprobe.c
libavcodec/error_resilience.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agofate: add some shorthands to run groups of tests
Diego Biurrun [Wed, 11 Jan 2012 12:42:17 +0000 (13:42 +0100)]
fate: add some shorthands to run groups of tests

12 years agofate: Give some tests more sensible names.
Diego Biurrun [Wed, 11 Jan 2012 12:37:29 +0000 (13:37 +0100)]
fate: Give some tests more sensible names.

12 years agocosmetics: Rename ffsink to avsink.
Diego Biurrun [Wed, 18 Jan 2012 22:00:12 +0000 (23:00 +0100)]
cosmetics: Rename ffsink to avsink.

12 years agoReplace a av_fast_malloc with av_fast_padded_malloc.
Reimar Döffinger [Wed, 18 Jan 2012 21:00:27 +0000 (22:00 +0100)]
Replace a av_fast_malloc with av_fast_padded_malloc.

This one was missed in the previous fraps fix, the
allocation is exactly the same in both cases.
Fixes fraps-v5 under valgrind.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoUse av_fast_padded_malloc in mimic and truemotion2 decoders.
Reimar Döffinger [Wed, 18 Jan 2012 20:23:22 +0000 (21:23 +0100)]
Use av_fast_padded_malloc in mimic and truemotion2 decoders.

Fixes use of uninitialized data errors under valgrind.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agopp: bump major in git master to match what debian contains.
Michael Niedermayer [Sat, 14 Jan 2012 23:45:28 +0000 (00:45 +0100)]
pp: bump major in git master to match what debian contains.

The ABI differences are negligible, but its easier for all if
all distros have libpostproc HEAD under the same soname and
debian bumped soname without consulting upstream, so as silly as
it is following this is probably the least pain for all.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoUse av_fast_padded_malloc in fraps and mpc decoders.
Reimar Döffinger [Tue, 17 Jan 2012 21:20:23 +0000 (22:20 +0100)]
Use av_fast_padded_malloc in fraps and mpc decoders.

Fixes FATE failures due to uninitialized reads under valgrind
for these two codecs.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoavprobe, cmdutils: K&R formatting cosmetics
Gaurav Narula [Wed, 18 Jan 2012 19:54:04 +0000 (20:54 +0100)]
avprobe, cmdutils: K&R formatting cosmetics

12 years agotests: K&R formatting cosmetics for test programs
Gaurav Narula [Wed, 18 Jan 2012 19:51:54 +0000 (20:51 +0100)]
tests: K&R formatting cosmetics for test programs

12 years agolavf: free packets for muxers implementing interleave_packet().
Anton Khirnov [Wed, 18 Jan 2012 07:07:40 +0000 (08:07 +0100)]
lavf: free packets for muxers implementing interleave_packet().

Fixes a memleak.

12 years agolavf: fix and extend av_interleaved_write_frame() doxy.
Anton Khirnov [Wed, 18 Jan 2012 06:59:02 +0000 (07:59 +0100)]
lavf: fix and extend av_interleaved_write_frame() doxy.

Specify that lavf is responsible for freeing the data.

12 years agomov: Remove dead stores for spherical coordinates for channel position.
Alex Converse [Wed, 18 Jan 2012 00:58:16 +0000 (16:58 -0800)]
mov: Remove dead stores for spherical coordinates for channel position.

12 years agoerror_resilience: K&R formatting cosmetics
Donald Ovcharov [Sat, 17 Dec 2011 19:30:01 +0000 (21:30 +0200)]
error_resilience: K&R formatting cosmetics

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agofix rtp 916 issue, patch 2
Dmitry Volyntsev [Wed, 18 Jan 2012 09:54:16 +0000 (13:54 +0400)]
fix rtp 916 issue, patch 2

Reviewed-by: Luca Abeni <lucabe72@email.it>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agofix rtp 916 issue
Dmitry Volyntsev [Wed, 18 Jan 2012 09:46:37 +0000 (13:46 +0400)]
fix rtp 916 issue

Reviewed-by: Luca Abeni <lucabe72@email.it>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavc: call ff_init_buffer_info() from default reget buffer.
Michael Niedermayer [Wed, 18 Jan 2012 00:14:01 +0000 (01:14 +0100)]
lavc: call ff_init_buffer_info() from default reget buffer.

This is needed in case the get_buffer() callback doesnt set
width/height.
Ideally all decoders would make calls through some wraper
to the callbacks and that wraper would call ff_init_buffer_info()
But until thats done, the default reget buffer must call this
itself as it needs the values for the changed size check later.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavc: when w/h changes in reget buffer, print the values.
Michael Niedermayer [Wed, 18 Jan 2012 00:13:22 +0000 (01:13 +0100)]
lavc: when w/h changes in reget buffer, print the values.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoRELEASE_NOTES: mention hiding private symbols in shared builds.
Anton Khirnov [Tue, 17 Jan 2012 12:38:35 +0000 (13:38 +0100)]
RELEASE_NOTES: mention hiding private symbols in shared builds.

12 years agoRELEASE_NOTES: mention some notable API changes in 0.8
Anton Khirnov [Tue, 17 Jan 2012 11:42:34 +0000 (12:42 +0100)]
RELEASE_NOTES: mention some notable API changes in 0.8

12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Wed, 18 Jan 2012 01:07:42 +0000 (02:07 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  tta: cast output data pointer to the correct type
  avconv: fix -frames for video encoders with delay.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffprobe: add more safe casts in value_string()
Stefano Sabatini [Tue, 17 Jan 2012 23:36:33 +0000 (00:36 +0100)]
ffprobe: add more safe casts in value_string()

Second attempt at fixing ticket #921.

12 years agoffprobe: use safer type for index variable in value_string()
Stefano Sabatini [Tue, 17 Jan 2012 23:22:17 +0000 (00:22 +0100)]
ffprobe: use safer type for index variable in value_string()

There is no guarantee that the casted double which is assigned to the
variable will be contained in an int (also if it is almost sure for most
non-alien architectures).

12 years agoffprobe: fix printing of unit values which cannot be contained in an int
Stefano Sabatini [Tue, 17 Jan 2012 23:01:07 +0000 (00:01 +0100)]
ffprobe: fix printing of unit values which cannot be contained in an int

Use long long int to contain such values instead of an int, which is
required to contain at least 64 bits, so it is guaranteed to contain also
int64_t values, which are used by some fields.

In particular, should fix trac ticket #921.

12 years agodoc/ffmpeg.texi: specify symbolic names for the vsync parameter
Stefano Sabatini [Tue, 17 Jan 2012 12:32:17 +0000 (13:32 +0100)]
doc/ffmpeg.texi: specify symbolic names for the vsync parameter

12 years agoFix memleak after switch to encode_audio2 API.
Reimar Döffinger [Tue, 17 Jan 2012 19:55:54 +0000 (20:55 +0100)]
Fix memleak after switch to encode_audio2 API.

Obviously the packet allocated by the encoder must be freed somewhere.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoUse ff_packet_free_side_data instead of duplicating it.
Reimar Döffinger [Tue, 17 Jan 2012 19:34:26 +0000 (20:34 +0100)]
Use ff_packet_free_side_data instead of duplicating it.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agomxfdec: Consider OPAtom files that don't have exactly one EC to be OP1a
Tomas Härdin [Wed, 11 Jan 2012 10:29:57 +0000 (11:29 +0100)]
mxfdec: Consider OPAtom files that don't have exactly one EC to be OP1a

This fixes demuxing of 2011_DCPTEST_24FPS.V.mxf.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavc: remove unused headers
Paul B Mahol [Tue, 17 Jan 2012 19:31:39 +0000 (19:31 +0000)]
lavc: remove unused headers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoffmpeg: check tcgetattr result.
Reimar Döffinger [Mon, 16 Jan 2012 23:10:17 +0000 (00:10 +0100)]
ffmpeg: check tcgetattr result.

This fixes parallel FATE (make fate -j4) failing under valgrind with:
 Syscall param ioctl(TCSET{S,SW,SF}) points to uninitialised byte(s)
    at 0x5D98B23: tcsetattr (tcsetattr.c:88)
    by 0x43D66C: term_init (ffmpeg.c:734)
    by 0x43CD8D: main (ffmpeg.c:5071)
  Address 0x7fefffdd0 is on thread 1's stack
  Uninitialised value was created by a stack allocation
    at 0x43D5B0: term_init (ffmpeg.c:716)

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoAdd and use av_fast_padded_malloc.
Reimar Döffinger [Sun, 15 Jan 2012 13:26:55 +0000 (14:26 +0100)]
Add and use av_fast_padded_malloc.

The same as av_fast_malloc but uses av_mallocz and keeps extra
always-0 padding.
This does not mean the memory will be 0-initialized after each call,
but actually only after each growth of the buffer.
However this makes sure that
a) all data anywhere in the buffer is always initialized
b) the padding is always 0
c) the user does not have to bother with adding the padding themselves
Fixes another valgrind warning about use of uninitialized data,
this time with fate-vsynth1-jpegls.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agolavc: Check CODEC_CAP_VARIABLE_FRAME_SIZE && !frame
Michael Niedermayer [Tue, 17 Jan 2012 02:17:56 +0000 (03:17 +0100)]
lavc: Check CODEC_CAP_VARIABLE_FRAME_SIZE && !frame

This combination is quite odd and almost certainly a bug if
it happens.

Reviewed-by: Justin Ruggles <justin.ruggles@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agolavc: use av_freep() for freeing extended_data
Michael Niedermayer [Tue, 17 Jan 2012 02:11:45 +0000 (03:11 +0100)]
lavc: use av_freep() for freeing extended_data

This is safer

Reviewed-by: Justin Ruggles <justin.ruggles@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agotta: cast output data pointer to the correct type
Justin Ruggles [Sat, 7 Jan 2012 15:25:32 +0000 (10:25 -0500)]
tta: cast output data pointer to the correct type

fixes "warning: assignment from incompatible pointer type"

12 years agotools: add ffeval tool
Stefano Sabatini [Sun, 15 Jan 2012 22:05:07 +0000 (23:05 +0100)]
tools: add ffeval tool

The tool is useful for testing the internal arithmetic evaluation engine
(indeed I plan to use it in FATE), and provides a handy calculator when
you can't rely on bc ;-).

12 years agodoc/eval.texi: add precisation about the assumption for "trueness" in conditional...
Stefano Sabatini [Sun, 15 Jan 2012 23:43:21 +0000 (00:43 +0100)]
doc/eval.texi: add precisation about the assumption for "trueness" in conditional expressions

12 years agolavu/eval: add if() and ifnot() eval functions
Stefano Sabatini [Sun, 15 Jan 2012 21:59:42 +0000 (22:59 +0100)]
lavu/eval: add if() and ifnot() eval functions

They allow to implement the if/then/else logic, which cannot be
implemented otherwise.

For example the expression:
A*B + not(A)*C

always evaluates to NaN if B is NaN, even in the case where A is 0.

12 years agolavfi/testsrc: add "decimals" option to the testsrc filter
Stefano Sabatini [Tue, 10 Jan 2012 10:20:21 +0000 (11:20 +0100)]
lavfi/testsrc: add "decimals" option to the testsrc filter

12 years agolavc/mpegvideo_enc: improve log message in case of too large GOP
Stefano Sabatini [Mon, 16 Jan 2012 17:53:59 +0000 (18:53 +0100)]
lavc/mpegvideo_enc: improve log message in case of too large GOP

Change log level from ERROR to WARNING and provide more specific
information in the message itself.

12 years agolibopenjpegenc: Remove two redundant function parameters.
Michael Bradshaw [Tue, 17 Jan 2012 11:01:42 +0000 (12:01 +0100)]
libopenjpegenc: Remove two redundant function parameters.

12 years agolibopenjpegenc: Simplify gray encoding.
Michael Bradshaw [Tue, 17 Jan 2012 10:57:36 +0000 (11:57 +0100)]
libopenjpegenc: Simplify gray encoding.

12 years agolibopenjpegenc: Add error messages.
Michael Bradshaw [Tue, 17 Jan 2012 10:47:08 +0000 (11:47 +0100)]
libopenjpegenc: Add error messages.

12 years agolibopenjpegenc: Rename four conversion functions.
Michael Bradshaw [Tue, 17 Jan 2012 10:43:44 +0000 (11:43 +0100)]
libopenjpegenc: Rename four conversion functions.

12 years agoavconv: fix -frames for video encoders with delay.
Anton Khirnov [Mon, 2 Jan 2012 08:22:41 +0000 (09:22 +0100)]
avconv: fix -frames for video encoders with delay.

Frames must be counted when they are passed to the encoder, not when
they come out.

Fixes Bug 202.

12 years agoUse correct register size.
Reimar Döffinger [Tue, 17 Jan 2012 07:41:04 +0000 (08:41 +0100)]
Use correct register size.

Fixes compilation with NASM.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 17 Jan 2012 00:40:45 +0000 (01:40 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rv34: add NEON rv34_idct_add
  rv34: 1-pass inter MB reconstruction
  add SMJPEG muxer
  avformat: split out common SMJPEG code
  pictordec: Use bytestream2 functions
  avconv: use avcodec_encode_audio2()
  pcmenc: use AVCodec.encode2()
  avcodec: bump minor version and add APIChanges for the new audio encoding API
  avcodec: Add avcodec_encode_audio2() as replacement for avcodec_encode_audio()
  avcodec: add a public function, avcodec_fill_audio_frame().
  rv34: Intra 16x16 handling
  rv34: Inter/intra MB code split

Conflicts:
Changelog
libavcodec/avcodec.h
libavcodec/pictordec.c
libavcodec/utils.c
libavcodec/version.h
libavcodec/x86/rv34dsp.asm
libavformat/version.h

Merged-by: Michael Niedermayer <michaelni@gmx.at>
12 years agodpxenc: Dont store lavc indent when bitexact is set.
Michael Niedermayer [Tue, 17 Jan 2012 00:37:59 +0000 (01:37 +0100)]
dpxenc: Dont store lavc indent when bitexact is set.

This avoids fate breakage from bumping version.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoSupport 64bit pam decoding.
Carl Eugen Hoyos [Mon, 16 Jan 2012 23:38:54 +0000 (00:38 +0100)]
Support 64bit pam decoding.

12 years agoSupport gray8a pam decoding.
Carl Eugen Hoyos [Mon, 16 Jan 2012 23:37:20 +0000 (00:37 +0100)]
Support gray8a pam decoding.

12 years agoFix pix_fmt_info for yuva420.
Carl Eugen Hoyos [Mon, 16 Jan 2012 23:30:28 +0000 (00:30 +0100)]
Fix pix_fmt_info for yuva420.

This allows correct output pix_fmt auto-selection
if the input pix_fmt is yuva420.

Fixes ticket #290.

12 years agofate: add GEN tag for mapchan sw tests.
Clément Bœsch [Fri, 13 Jan 2012 18:17:12 +0000 (19:17 +0100)]
fate: add GEN tag for mapchan sw tests.

12 years agofix av_dlog call with non-AVClass struct
Maksym Veremeyenko [Mon, 16 Jan 2012 14:20:58 +0000 (16:20 +0200)]
fix av_dlog call with non-AVClass struct

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years agoRemove extraneous newline from dpx reference which breaks FATE.
Reimar Döffinger [Mon, 16 Jan 2012 18:43:41 +0000 (19:43 +0100)]
Remove extraneous newline from dpx reference which breaks FATE.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agorv34: add NEON rv34_idct_add
Janne Grunau [Sun, 15 Jan 2012 18:16:02 +0000 (19:16 +0100)]
rv34: add NEON rv34_idct_add

Overall almost 4% faster, idct_add down from 350 to 85 cycles, idct_dc_add
down from 83 to 30 cycles.

squash: rv34 idct rearrange partial register loads

12 years agorv34: 1-pass inter MB reconstruction
Christophe GISQUET [Tue, 3 Jan 2012 19:38:29 +0000 (20:38 +0100)]
rv34: 1-pass inter MB reconstruction

Implement 1-pass inverse transform and reconstruction for inter blocks.

12 years agoRework VP8 decoder frame skipping code.
Reimar Döffinger [Sun, 11 Dec 2011 15:02:30 +0000 (16:02 +0100)]
Rework VP8 decoder frame skipping code.

This reworks the frame skipping code such that the reference
buffers are still updated according to the header.
However it also ensures that the current frame will not end
up in any reference buffer.
Also fixes a hang with frame-multithreading, probably because
get_buffer was already called and would have reset the progress,
however the frame could remain in framep due to the missing update
(or it could be assigned to next_framep and a skip_frame skip would
then write it into framep - there might be even more failure modes).
Sample might become available at samples/nsv/vp8.nsv

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agomxfdec: Add missing free.
Reimar Döffinger [Sun, 15 Jan 2012 09:08:02 +0000 (10:08 +0100)]
mxfdec: Add missing free.

Should fix valgrind FATE.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years agoasfdec: Move variable declarations into the blocks they are used in.
Reimar Döffinger [Sun, 15 Jan 2012 19:18:22 +0000 (20:18 +0100)]
asfdec: Move variable declarations into the blocks they are used in.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>