]> git.sesse.net Git - ffmpeg/log
ffmpeg
12 years agoget_bits: introduce safe bitreading to prevent overreads.
Ronald S. Bultje [Fri, 16 Dec 2011 21:42:04 +0000 (21:42 +0000)]
get_bits: introduce safe bitreading to prevent overreads.

When turned on, H264/CAVLC gets ~15% (CVPCMNL1_SVA_C.264) slower for
ultra-high-bitrate files, or ~2.5% (CVFI1_SVA_C.264) for lower-bitrate
files. Other codecs are affected to a lesser extent because they are
less optimized; e.g., VC-1 slows down by less than 1% (all on x86).
The patch generated 3 extra instructions (cmp, cmovae and mov) per
call to get_bits().

The performance penalty on ARM is within the error margin for most
files, up to 4% in extreme cases such as CVPCMNL1_SVA_C.264.

Based on work (for GCI) by Aneesh Dogra <lionaneesh@gmail.com>, and
inspired by patch in Chromium by Chris Evans <cevans@chromium.org>.

12 years agoget_bits: remove A32 variant
Mans Rullgard [Fri, 16 Dec 2011 21:19:50 +0000 (21:19 +0000)]
get_bits: remove A32 variant

The A32 bitstream reader variant is only used on ARMv5 and for
Prores due to the larger bit cache this decoder requires.

In benchmarks on ARMv5 (Marvell Sheeva) with gcc 4.6, the only
statistically significant difference between ALT and A32 is
a 4% advantage for ALT in FLAC decoding.  There is thus no (longer)
any reason to keep the A32 reader from this point of view.

This patch adds an option to the ALT reader increasing the bit
cache to 32 bits as required by the Prores decoder.  Benchmarking
shows no significant change in speed on Intel i7.  Again, the
A32 reader fails to justify its existence.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoavconv: support stream specifiers in -metadata and -map_metadata
Alexandra Khirnova [Tue, 13 Dec 2011 10:23:06 +0000 (10:23 +0000)]
avconv: support stream specifiers in -metadata and -map_metadata

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agowavpack: Fix 32-bit clipping
Derek Buitenhuis [Fri, 16 Dec 2011 18:31:29 +0000 (13:31 -0500)]
wavpack: Fix 32-bit clipping

In the case that (frame_flags & 0x03) == 3, hybrid_maxclip
may have had a signed integer overflow.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agowavpack: Clip samples after shifting
Derek Buitenhuis [Fri, 16 Dec 2011 18:31:28 +0000 (13:31 -0500)]
wavpack: Clip samples after shifting

It doesn't make much sense to clip pre-shift,
nor is it correct for proper decoding.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoh264: don't drop B-frames after next keyframe on POC reset.
Ronald S. Bultje [Mon, 12 Dec 2011 20:02:58 +0000 (12:02 -0800)]
h264: don't drop B-frames after next keyframe on POC reset.

The keyframe after a POC reset may not be the first to be returned to
the user. Therefore, don't reset the expected next POC once we return
a keyframe to the user, but once we know that the next frame in the
return-queue is a keyframe.

12 years agoget_bits: remove useless pointer casts
Mans Rullgard [Fri, 16 Dec 2011 15:10:42 +0000 (15:10 +0000)]
get_bits: remove useless pointer casts

These pointers are already of the correct type.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoconfigure: refactor lists of tests and components into variables
Diego Biurrun [Mon, 12 Sep 2011 15:52:44 +0000 (17:52 +0200)]
configure: refactor lists of tests and components into variables

12 years agorv40: NEON optimised weak loop filter
Mans Rullgard [Fri, 9 Dec 2011 21:21:26 +0000 (21:21 +0000)]
rv40: NEON optimised weak loop filter

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agompegts: replace some magic numbers with the existing define
Vladimir Pantelic [Fri, 16 Dec 2011 09:01:16 +0000 (10:01 +0100)]
mpegts: replace some magic numbers with the existing define

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoswscale: add unscaled packed 16 bit per component endianess conversion
Janne Grunau [Thu, 15 Dec 2011 23:44:26 +0000 (00:44 +0100)]
swscale: add unscaled packed 16 bit per component endianess conversion

12 years agomovenc: Rudimentary IODs support.
Alex Converse [Tue, 4 Oct 2011 18:44:25 +0000 (11:44 -0700)]
movenc: Rudimentary IODs support.

12 years agov410enc: fix output buffer size check
Mans Rullgard [Thu, 15 Dec 2011 16:31:07 +0000 (16:31 +0000)]
v410enc: fix output buffer size check

The encoder clearly needs width * height * 4 bytes.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agov410enc: include correct headers
Mans Rullgard [Thu, 15 Dec 2011 16:06:12 +0000 (16:06 +0000)]
v410enc: include correct headers

This file does not use anything from put_bits.h but needs
intreadwrite.h.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agofate: add -pix_fmt rgb48le to r210 test
Janne Grunau [Thu, 15 Dec 2011 14:44:38 +0000 (15:44 +0100)]
fate: add -pix_fmt rgb48le to r210 test

Fixes checksum on big endian systems.

12 years agoflvenc: Support muxing 16 kHz nellymoser
Martin Storsjö [Thu, 15 Dec 2011 13:10:57 +0000 (15:10 +0200)]
flvenc: Support muxing 16 kHz nellymoser

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoconfigure: refactor list of programs into a variable
Diego Biurrun [Thu, 15 Dec 2011 11:17:13 +0000 (12:17 +0100)]
configure: refactor list of programs into a variable

12 years agofate: add r210 decoder test
Aneesh Dogra [Sun, 11 Dec 2011 04:45:38 +0000 (04:45 +0000)]
fate: add r210 decoder test

Signed-off-by: Janne Grunau <janne-libav@jannau.net>
12 years agofate: split off Indeo FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 21:48:20 +0000 (22:48 +0100)]
fate: split off Indeo FATE tests into their own file

12 years agofate: split off ATRAC FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 21:35:14 +0000 (22:35 +0100)]
fate: split off ATRAC FATE tests into their own file

12 years agofate: Add FATE tests for v410 encoder and decoder
Derek Buitenhuis [Tue, 13 Dec 2011 20:07:12 +0000 (15:07 -0500)]
fate: Add FATE tests for v410 encoder and decoder

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoARM: fix external symbol refs in rv40 asm
Mans Rullgard [Thu, 15 Dec 2011 11:02:46 +0000 (11:02 +0000)]
ARM: fix external symbol refs in rv40 asm

External symbol references need prefixes on some systems.
This should fix build errors on Darwin.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agowestwood: Make sure audio header info is present when parsing audio packets
Shitiz Garg [Thu, 15 Dec 2011 09:02:59 +0000 (14:32 +0530)]
westwood: Make sure audio header info is present when parsing audio packets

Audio header information might get scrambled and would not parse,
yet wsqva_read_packet would try to parse audio packets causing
segfaults such as floating point exception.

Fixes bugzilla #141.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolibgsm: Reset the MS mode of GSM in the flush function
Martin Storsjö [Wed, 14 Dec 2011 20:32:29 +0000 (22:32 +0200)]
libgsm: Reset the MS mode of GSM in the flush function

The mode is set in libgsm_decode_init, but the decoder
object is simply destroyed and recreated in the flush
function - therefore the mode has to be set again.

This fixes playback using the libgsm_ms decoder in avplay.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolibgsm: Set options on the right object
Martin Storsjö [Wed, 14 Dec 2011 20:14:28 +0000 (22:14 +0200)]
libgsm: Set options on the right object

This fixes regressions in decoding using the libgsm_ms decoder,
broken since 0eea21294354.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoARM: dca: disable optimised decode_blockcodes() for old gcc
Mans Rullgard [Thu, 15 Dec 2011 00:29:49 +0000 (00:29 +0000)]
ARM: dca: disable optimised decode_blockcodes() for old gcc

Old gcc versions have trouble compiling this function, and
no simple, targeted test is possible.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoapplehttp: Properly clean up if unable to probe a segment
Martin Storsjö [Wed, 14 Dec 2011 18:34:58 +0000 (20:34 +0200)]
applehttp: Properly clean up if unable to probe a segment

This avoids a segfault if the probe function wasn't able to
determine the format.

The bug was found by Panagiotis H.M. Issaris.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoapplehttp: Avoid reading uninitialized memory
Martin Storsjö [Wed, 14 Dec 2011 18:33:39 +0000 (20:33 +0200)]
applehttp: Avoid reading uninitialized memory

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agofate: Replace misleading "aac" in the name of an ADTS test with "adts".
Diego Biurrun [Wed, 14 Dec 2011 18:31:22 +0000 (19:31 +0100)]
fate: Replace misleading "aac" in the name of an ADTS test with "adts".

12 years agofate: Drop pointless "-an" from pictor test command.
Diego Biurrun [Wed, 14 Dec 2011 19:00:33 +0000 (20:00 +0100)]
fate: Drop pointless "-an" from pictor test command.

12 years agofate: split off image codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 15:25:00 +0000 (16:25 +0100)]
fate: split off image codec FATE tests into their own file

12 years agofate: split off WMA codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 18:47:46 +0000 (19:47 +0100)]
fate: split off WMA codec FATE tests into their own file

12 years agofate: split off lossless video and audio FATE tests into their own files
Diego Biurrun [Wed, 14 Dec 2011 18:26:00 +0000 (19:26 +0100)]
fate: split off lossless video and audio FATE tests into their own files

12 years agofate: split off qtrle codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 18:24:42 +0000 (19:24 +0100)]
fate: split off qtrle codec FATE tests into their own file

12 years agofate: split off Ut Video codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 18:22:03 +0000 (19:22 +0100)]
fate: split off Ut Video codec FATE tests into their own file

12 years agofate: split off screen codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 13:59:47 +0000 (14:59 +0100)]
fate: split off screen codec FATE tests into their own file

12 years agofate: split off Real Inc. codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 13:47:37 +0000 (14:47 +0100)]
fate: split off Real Inc. codec FATE tests into their own file

12 years agofate: split off AC-3 codec FATE tests into their own file
Diego Biurrun [Wed, 14 Dec 2011 13:39:13 +0000 (14:39 +0100)]
fate: split off AC-3 codec FATE tests into their own file

12 years agompegvideo: remove abort() in ff_find_unused_picture()
Andrey Utkin [Thu, 8 Dec 2011 11:56:29 +0000 (13:56 +0200)]
mpegvideo: remove abort() in ff_find_unused_picture()

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agorv40: NEON optimised loop filter strength selection
Mans Rullgard [Thu, 8 Dec 2011 04:26:12 +0000 (04:26 +0000)]
rv40: NEON optimised loop filter strength selection

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agorv40: rearrange loop filter functions
Mans Rullgard [Thu, 8 Dec 2011 02:50:25 +0000 (02:50 +0000)]
rv40: rearrange loop filter functions

This splits the loop filter functions into smaller, more SIMD-friendly
functions.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoconfigure: cosmetics: sort some lists where appropriate
Diego Biurrun [Mon, 12 Sep 2011 15:40:29 +0000 (17:40 +0200)]
configure: cosmetics: sort some lists where appropriate

12 years agoswscale_mmx: drop no longer required parameters from VSCALEX macros
Diego Biurrun [Wed, 14 Dec 2011 02:15:38 +0000 (03:15 +0100)]
swscale_mmx: drop no longer required parameters from VSCALEX macros

12 years agoswscale: Mark yuv2planeX_8_mmx as MMX2; it contains MMX2 instructions.
Diego Biurrun [Wed, 14 Dec 2011 02:15:37 +0000 (03:15 +0100)]
swscale: Mark yuv2planeX_8_mmx as MMX2; it contains MMX2 instructions.

12 years agobuild: conditionally compile x86 H.264 chroma optimizations
Diego Biurrun [Tue, 13 Dec 2011 21:54:52 +0000 (22:54 +0100)]
build: conditionally compile x86 H.264 chroma optimizations

12 years agov410 encoder and decoder
Derek Buitenhuis [Tue, 13 Dec 2011 19:33:48 +0000 (14:33 -0500)]
v410 encoder and decoder

v410 is a packed 10-bit 4:4:4 YCbCr format used in
QuickTime.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agodoc: make developer.texi point to correct fate doc
Derek Buitenhuis [Mon, 12 Dec 2011 18:01:12 +0000 (13:01 -0500)]
doc: make developer.texi point to correct fate doc

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agobuild: rename subdir.mak ---> library.mak
Diego Biurrun [Tue, 13 Dec 2011 14:55:11 +0000 (15:55 +0100)]
build: rename subdir.mak ---> library.mak

12 years agoconfigure: do not manually enable protocols
Diego Biurrun [Mon, 12 Sep 2011 11:56:06 +0000 (13:56 +0200)]
configure: do not manually enable protocols

Protocols are handled just like all other components groups such as
muxers and are automatically enabled.

12 years agoulti: Fix invalid reads
Gaurav Narula [Tue, 13 Dec 2011 17:41:37 +0000 (23:11 +0530)]
ulti: Fix invalid reads

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agolavf: dealloc private options in av_write_trailer
Luca Barbato [Mon, 12 Dec 2011 17:22:22 +0000 (18:22 +0100)]
lavf: dealloc private options in av_write_trailer

Fix the iformat/oformat typo.

12 years agoyadif: support 10bit YUV
Luca Barbato [Sun, 4 Dec 2011 14:56:41 +0000 (15:56 +0100)]
yadif: support 10bit YUV

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agovc1: mark with ER_MB_ERROR bits overconsumption
Luca Barbato [Sun, 27 Nov 2011 23:31:53 +0000 (00:31 +0100)]
vc1: mark with ER_MB_ERROR bits overconsumption

This patch is a generalization of what Michael Niedermayer
fixed in a single case.

The wmv8-drm fate test had been updated accordingly.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agolavc: introduce ER_MB_END and ER_MB_ERROR
Luca Barbato [Sun, 27 Nov 2011 23:31:52 +0000 (00:31 +0100)]
lavc: introduce ER_MB_END and ER_MB_ERROR

Simplify a little error resilience calls

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agoerror_resilience: use the ER_ namespace
Luca Barbato [Sun, 27 Nov 2011 23:31:51 +0000 (00:31 +0100)]
error_resilience: use the ER_ namespace

Add the namespace to {AC_,DC_,MV_}{END,ERROR} macros

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years agobuild: move inclusion of subdir.mak to main subdir loop
Mans Rullgard [Tue, 13 Dec 2011 13:28:01 +0000 (13:28 +0000)]
build: move inclusion of subdir.mak to main subdir loop

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agorv34: NEON optimised 4x4 dequant
Mans Rullgard [Mon, 12 Dec 2011 23:22:04 +0000 (23:22 +0000)]
rv34: NEON optimised 4x4 dequant

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agorv34: move 4x4 dequant to RV34DSPContext
Mans Rullgard [Mon, 12 Dec 2011 23:21:39 +0000 (23:21 +0000)]
rv34: move 4x4 dequant to RV34DSPContext

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoaacdec: Use intfloat.h rather than local punning union.
Alex Converse [Mon, 12 Dec 2011 18:23:51 +0000 (10:23 -0800)]
aacdec: Use intfloat.h rather than local punning union.

12 years agodoxygen: misc consistency, spelling and wording fixes
Diego Biurrun [Wed, 7 Dec 2011 12:03:53 +0000 (13:03 +0100)]
doxygen: misc consistency, spelling and wording fixes

12 years agovcr1: drop unnecessary emms_c() calls without MMX code
Paul B Mahol [Sat, 10 Dec 2011 16:39:21 +0000 (16:39 +0000)]
vcr1: drop unnecessary emms_c() calls without MMX code

Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years agoReplace all uses of av_close_input_file() with avformat_close_input().
Anton Khirnov [Sun, 11 Dec 2011 09:38:28 +0000 (10:38 +0100)]
Replace all uses of av_close_input_file() with avformat_close_input().

12 years agolavf: add avformat_close_input().
Anton Khirnov [Sun, 11 Dec 2011 09:34:08 +0000 (10:34 +0100)]
lavf: add avformat_close_input().

It sets the supplied AVFormatContext pointer to NULL after freeing it,
which is safer and its name is consistent with other lavf functions.

Also deprecate av_close_input_file().

12 years agolavf: deprecate av_close_input_stream().
Anton Khirnov [Sun, 11 Dec 2011 09:01:46 +0000 (10:01 +0100)]
lavf: deprecate av_close_input_stream().

And remove all its uses.

12 years agolavf doxy: add some basic demuxing documentation.
Anton Khirnov [Sun, 11 Dec 2011 08:51:19 +0000 (09:51 +0100)]
lavf doxy: add some basic demuxing documentation.

12 years agolavf doxy: add some general lavf information.
Anton Khirnov [Sun, 11 Dec 2011 08:05:11 +0000 (09:05 +0100)]
lavf doxy: add some general lavf information.

12 years agolavf doxy: add misc utility functions to a group.
Anton Khirnov [Sun, 11 Dec 2011 07:08:46 +0000 (08:08 +0100)]
lavf doxy: add misc utility functions to a group.

12 years agolavf doxy: add av_guess_codec/format to the encoding group.
Anton Khirnov [Sun, 11 Dec 2011 07:07:53 +0000 (08:07 +0100)]
lavf doxy: add av_guess_codec/format to the encoding group.

12 years agolavf doxy: add core functions to a doxy group.
Anton Khirnov [Sun, 11 Dec 2011 06:55:21 +0000 (07:55 +0100)]
lavf doxy: add core functions to a doxy group.

12 years agoAdd basic libavdevice documentation.
Anton Khirnov [Sun, 11 Dec 2011 11:43:50 +0000 (12:43 +0100)]
Add basic libavdevice documentation.

12 years agolavc: convert error_recognition to err_recognition.
Dustin Brody [Wed, 7 Dec 2011 13:51:36 +0000 (08:51 -0500)]
lavc: convert error_recognition to err_recognition.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoavconv: update -map option help text
Janne Grunau [Mon, 12 Dec 2011 11:45:32 +0000 (12:45 +0100)]
avconv: update -map option help text

12 years agox86: Require 7 registers for the cabac asm
Martin Storsjö [Mon, 12 Dec 2011 12:48:53 +0000 (14:48 +0200)]
x86: Require 7 registers for the cabac asm

The change in 599b4c6ef didn't turn out to work properly on
i386 on OS X, where it broke building with PIC enabled.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agox86: bswap: remove test for bswap instruction
Mans Rullgard [Mon, 12 Dec 2011 01:33:17 +0000 (01:33 +0000)]
x86: bswap: remove test for bswap instruction

Firstly, this test never worked as intended, always reporting
success.  Secondly, bswap is available from 486 onward and can
thus be assumed present.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agobswap: make generic implementation more compiler-friendly
Mans Rullgard [Mon, 12 Dec 2011 00:50:08 +0000 (00:50 +0000)]
bswap: make generic implementation more compiler-friendly

With these changes, gcc 4.5 and later recognise it as a bswap
and use the proper instructions on ARM and x86.  On x86, the
16-bit bswap is recognised from gcc 4.1.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoh264: remove useless cast
Mans Rullgard [Sun, 11 Dec 2011 23:51:12 +0000 (23:51 +0000)]
h264: remove useless cast

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoproresdec: fix decode_slice() prototype
Mans Rullgard [Sun, 11 Dec 2011 23:36:05 +0000 (23:36 +0000)]
proresdec: fix decode_slice() prototype

Make the function prototype match the argument of
AVCodecCntext.execute() and remove the cast hiding
this mismatch.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agox86: cabac: replace explicit memory references with "m" operands
Mans Rullgard [Sun, 11 Dec 2011 21:41:59 +0000 (21:41 +0000)]
x86: cabac: replace explicit memory references with "m" operands

This replaces the explicit offset(reg) memory references with
"m" operands for the same locations.  As a result, one fewer
register operand is needed for these inline asm statements.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agoavplay: don't request a stereo downmix
Justin Ruggles [Sat, 10 Dec 2011 21:59:55 +0000 (16:59 -0500)]
avplay: don't request a stereo downmix

Multi-channel output works just fine for me with SDL 1.2.14.

12 years agowmapro: use av_float2int()
Mans Rullgard [Sat, 10 Dec 2011 15:51:25 +0000 (15:51 +0000)]
wmapro: use av_float2int()

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agolavc: avoid invalid memcpy() in avcodec_default_release_buffer()
Mans Rullgard [Mon, 5 Dec 2011 15:38:10 +0000 (15:38 +0000)]
lavc: avoid invalid memcpy() in avcodec_default_release_buffer()

When the buf and last pointers are equal, the FFSWAP() results
in an invalid call to memcpy() with same source and destination
on some targets.  Although assigning a struct to itself is valid
C99, gcc does not check for this before calling memcpy().
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agolavu: replace int/float punning functions
Mans Rullgard [Sun, 27 Nov 2011 14:04:16 +0000 (14:04 +0000)]
lavu: replace int/float punning functions

The existing functions defined in intfloat_readwrite.[ch] are
both slow and incorrect (infinities are not handled).

This introduces a new header with fast, inline conversion
functions using direct union punning assuming an IEEE-754
system, an assumption already made throughout the code.

The one use of Intel/Motorola extended 80-bit format is
replaced by simpler code sufficient under the present
constraints (positive normal values).

The old functions are marked deprecated and retained for
compatibility.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agolavfi: install libavfilter/vsrc_buffer.h
Andrey Utkin [Thu, 8 Dec 2011 19:27:01 +0000 (21:27 +0200)]
lavfi: install libavfilter/vsrc_buffer.h

It declares API necessary for filtering apps.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years agoRemove extraneous semicolons
Mans Rullgard [Sun, 11 Dec 2011 17:07:04 +0000 (17:07 +0000)]
Remove extraneous semicolons

These semicolons cause invalid empty top-level declarations.

Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years agosdp: Restore the original mp4 format h264 extradata if converted
Martin Storsjö [Fri, 9 Dec 2011 19:00:09 +0000 (21:00 +0200)]
sdp: Restore the original mp4 format h264 extradata if converted

If the sdp is generated before the rtp muxer is initialized
(e.g. as when called from the rtsp muxer), this has to be done,
otherwise the rtp muxer doesn't know that the input really is
in mp4 format.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortpenc: Add support for mp4 format h264
Luca Abeni [Fri, 9 Dec 2011 09:02:55 +0000 (11:02 +0200)]
rtpenc: Add support for mp4 format h264

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agortpenc: Simplify code by introducing a separate end pointer
Martin Storsjö [Fri, 9 Dec 2011 18:42:52 +0000 (20:42 +0200)]
rtpenc: Simplify code by introducing a separate end pointer

Also remove redundant parentheses.

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agomovenc: Use the actual converted sample for RTP hinting
Martin Storsjö [Fri, 9 Dec 2011 19:19:57 +0000 (21:19 +0200)]
movenc: Use the actual converted sample for RTP hinting

If an annex b bitstream is muxed into mov, the actual written
sample is reformatted to mp4 syntax before writing.

Currently, the RTP hints that copy data from the normal video
track, where the payload data might be offset compared to the
original sample that the RTP hinting used (when 3 byte
annex b startcodes have been converted into 4 byte mp4 format
startcodes).

Signed-off-by: Martin Storsjö <martin@martin.st>
12 years agoFix a bunch of common typos.
Diego Biurrun [Wed, 5 Oct 2011 12:12:42 +0000 (14:12 +0200)]
Fix a bunch of common typos.

12 years agoWarn about avserver being broken.
Anton Khirnov [Sat, 10 Dec 2011 17:30:03 +0000 (18:30 +0100)]
Warn about avserver being broken.

Also remove mentions of it from other avtools' manuals.

12 years agoavconv: drop code for special handling of avserver streams.
Anton Khirnov [Sat, 10 Dec 2011 16:33:52 +0000 (17:33 +0100)]
avconv: drop code for special handling of avserver streams.

It's broken and doesn't work anyway.

This patch means that avconv will ignore encoding options from the ffm
file and will instead use whatever is provided on the commandline as for
normal output.

12 years agorawdec: don't set codec timebase.
Anton Khirnov [Sat, 10 Dec 2011 11:40:05 +0000 (12:40 +0100)]
rawdec: don't set codec timebase.

It's not supposed to be set outside of lavc. Set r_frame_rate and
avg_frame_rate instead.

12 years agolavf doxy: add muxing stuff to lavf_encoding group
Anton Khirnov [Sat, 10 Dec 2011 20:04:30 +0000 (21:04 +0100)]
lavf doxy: add muxing stuff to lavf_encoding group

12 years agolavf doxy: add demuxing stuff to lavf_decoding group
Anton Khirnov [Sat, 10 Dec 2011 20:04:30 +0000 (21:04 +0100)]
lavf doxy: add demuxing stuff to lavf_decoding group

12 years agolavf doxy: expand/reword metadata API doxy.
Anton Khirnov [Sat, 10 Dec 2011 19:39:39 +0000 (20:39 +0100)]
lavf doxy: expand/reword metadata API doxy.

12 years agolavf doxy: add installed headers to groups.
Anton Khirnov [Sat, 10 Dec 2011 19:16:57 +0000 (20:16 +0100)]
lavf doxy: add installed headers to groups.

12 years agolavf doxy: add avio groups into the lavf_io group.
Anton Khirnov [Sat, 10 Dec 2011 19:11:28 +0000 (20:11 +0100)]
lavf doxy: add avio groups into the lavf_io group.

12 years agolavf doxy: rename lavf I/O group to lavf_io.
Anton Khirnov [Sat, 10 Dec 2011 19:09:04 +0000 (20:09 +0100)]
lavf doxy: rename lavf I/O group to lavf_io.

12 years agolavf doxy: add metadata docs to the main lavf group
Anton Khirnov [Sat, 10 Dec 2011 19:06:49 +0000 (20:06 +0100)]
lavf doxy: add metadata docs to the main lavf group

12 years agottadec: check channel count as read from extradata.
Shitiz Garg [Sat, 10 Dec 2011 19:40:57 +0000 (01:10 +0530)]
ttadec: check channel count as read from extradata.

fixes floating-point exception due to channels being set to 0.
fixes Bug 128.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>