ffmpeg.git
7 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sat, 21 Jan 2012 22:11:27 +0000 (23:11 +0100)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  rtpdec: Use our own SSRC in the SDES field when sending RRs
  Finalize changelog for 0.8 Release
  Prepare for 0.8 Release
  threads: change the default for threads back to 1
  threads: update slice_count and slice_offset from user context
  aviocat: Remove useless includes
  doc/APIChanges: fill in missing dates and hashes
  Revert "avserver: fix build after the next bump."
  mpegaudiodec: switch error detection check to AV_EF_BUFFER
  lavf: rename fer option and document resulting (f_)err_detect options
  lavc: rename err_filter option to err_detect and document it
  mpegvideo: fix invalid memory access for small video dimensions
  movenc: Reorder entries in the MOVIentry struct, for tigheter packing
  rtsp: Remove extern declarations for variables that don't exist
  aviocat: Flush the output before closing

Conflicts:
Changelog
RELEASE
libavcodec/mpegaudiodec.c
libavcodec/pthread.c
libavformat/options.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
7 years agortpdec: Use our own SSRC in the SDES field when sending RRs
Martin Storsjö [Sat, 21 Jan 2012 15:20:45 +0000 (17:20 +0200)]
rtpdec: Use our own SSRC in the SDES field when sending RRs

The s->ssrc field is the sender's SSRC, we use ssrc + 1 to get
a collision free "unique" SSRC for ourselves in the RR part.
The SDES block in the RTCP packet should describe ourselves,
not the sender.

This was fixed for the RR part in 952139a3226b, but wasn't
fixed for the SDES part until now.

This could cause some Axis cameras to send RTCP BYE packets
to us due to the SSRC collision.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoFinalize changelog for 0.8 Release
Reinhard Tartler [Sat, 21 Jan 2012 17:37:25 +0000 (18:37 +0100)]
Finalize changelog for 0.8 Release

7 years agoSupport decoding Avid DS Uncompressed (SUDS).
Carl Eugen Hoyos [Sat, 21 Jan 2012 16:58:26 +0000 (17:58 +0100)]
Support decoding Avid DS Uncompressed (SUDS).

Fixes ticket #934

7 years agoUnroll base64 decode loop.
Reimar Döffinger [Sat, 21 Jan 2012 11:43:42 +0000 (12:43 +0100)]
Unroll base64 decode loop.

Around 50% faster.
decode:       374139 -> 248852 decicycles
syntax check: 236955 -> 123854 decicycles

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoPrepare for 0.8 Release
Reinhard Tartler [Sat, 21 Jan 2012 13:54:31 +0000 (14:54 +0100)]
Prepare for 0.8 Release

7 years agoUse a full table for base64 decode.
Reimar Döffinger [Sat, 21 Jan 2012 11:22:19 +0000 (12:22 +0100)]
Use a full table for base64 decode.

Also encodes error or end marker into table.
About 20% faster.
decode:       466491 -> 374139 decicycles
syntax check: 236955 -> 161182 decicycles

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 years agoFix valgrind FATE for out-of-tree builds.
Reimar Döffinger [Sat, 21 Jan 2012 13:35:51 +0000 (14:35 +0100)]
Fix valgrind FATE for out-of-tree builds.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
7 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.

7 years agothreads: change the default for threads back to 1
Janne Grunau [Wed, 18 Jan 2012 09:53:41 +0000 (10:53 +0100)]
threads: change the default for threads back to 1

Using threaded decoding by default breaks backward compatibility if
AVHWAccel is used or if an appliction sets threadunsafe callbacks.
Avconv and avplay still use -threads auto if not specified.

7 years agothreads: update slice_count and slice_offset from user context
Janne Grunau [Fri, 20 Jan 2012 12:37:00 +0000 (13:37 +0100)]
threads: update slice_count and slice_offset from user context

They are used to signal the number of slices and offsets of each slice
out of band to the decoder.

7 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>
7 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>
7 years agoaviocat: Remove useless includes
Martin Storsjö [Sat, 21 Jan 2012 09:33:35 +0000 (11:33 +0200)]
aviocat: Remove useless includes

Also include stdlib.h explicitly - currently it is used
implicitly via avformat.h.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agodoc/APIChanges: fill in missing dates and hashes
Anton Khirnov [Sat, 21 Jan 2012 07:48:53 +0000 (08:48 +0100)]
doc/APIChanges: fill in missing dates and hashes

7 years agoRevert "avserver: fix build after the next bump."
Anton Khirnov [Sat, 21 Jan 2012 07:40:47 +0000 (08:40 +0100)]
Revert "avserver: fix build after the next bump."

This temporarily (until 0.8 is released) reverts commit
8e1340abc316e038bb89e5a3b46e92ff58c98a88. That commit breaks shared
builds because of symbol hiding. Reverting it will enable shared builds
for 0.8

7 years agompegaudiodec: switch error detection check to AV_EF_BUFFER
Dustin Brody [Mon, 16 Jan 2012 13:25:04 +0000 (08:25 -0500)]
mpegaudiodec: switch error detection check to AV_EF_BUFFER

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavf: rename fer option and document resulting (f_)err_detect options
Dustin Brody [Fri, 20 Jan 2012 08:53:54 +0000 (03:53 -0500)]
lavf: rename fer option and document resulting (f_)err_detect options

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agolavc: rename err_filter option to err_detect and document it
Dustin Brody [Fri, 20 Jan 2012 08:57:32 +0000 (03:57 -0500)]
lavc: rename err_filter option to err_detect and document it

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 years agompegvideo: fix invalid memory access for small video dimensions
John Brooks [Tue, 13 Dec 2011 00:04:14 +0000 (17:04 -0700)]
mpegvideo: fix invalid memory access for small video dimensions

When either video dimension is only one macroblock, subtractions
based on v_edge_pos and the macroblock size may be negative. In
that situation, an unsigned comparison isn't sufficent to test for
MV overruns, because a limit of (unsigned)-1 will let any other
value pass.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 years agomovenc: Reorder entries in the MOVIentry struct, for tigheter packing
Martin Storsjö [Fri, 20 Jan 2012 18:48:19 +0000 (20:48 +0200)]
movenc: Reorder entries in the MOVIentry struct, for tigheter packing

Originally, sizeof(struct MOVIentry) was 48, after the reordering,
it is 40 in my build configuration.

When writing really long mov/mp4 files, this can make a difference
- this saves a bit over 2 MB of memory per hour of video (down to
10.3 MB per hour from 12.3 MB per hour initially) for a video with
75 packets per second - 25 fps + 50 audio packets (which is the
case for AMR audio).

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agortsp: Remove extern declarations for variables that don't exist
Martin Storsjö [Fri, 20 Jan 2012 14:57:23 +0000 (16:57 +0200)]
rtsp: Remove extern declarations for variables that don't exist

Signed-off-by: Martin Storsjö <martin@martin.st>
7 years agoaviocat: Flush the output before closing
Martin Storsjö [Fri, 20 Jan 2012 20:53:18 +0000 (22:53 +0200)]
aviocat: Flush the output before closing

Without this, the end of the file might not be transmitted/written.

Signed-off-by: Martin Storsjö <martin@martin.st>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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>
7 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

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

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

7 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()

7 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

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

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

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

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

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

7 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

7 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
7 years agoSimplify 32bit png decoding.
Carl Eugen Hoyos [Thu, 19 Jan 2012 22:11:53 +0000 (23:11 +0100)]
Simplify 32bit png decoding.

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

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

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

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

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

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

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

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

7 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

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

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

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

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

7 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

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

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

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

7 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

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

7 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 ;-).

7 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

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

7 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