summaryrefslogtreecommitdiffstats
path: root/libswresample
Commit message (Collapse)AuthorAgeFilesLines
* swr: check that the context for swr_convert() has been initializedMichael Niedermayer2014-02-241-0/+5
| | | | | Reviewed-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: add swr_is_initialized()Michael Niedermayer2014-02-243-2/+13
| | | | | | Idea-from/based-on: 7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731 Reviewed-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: factorize clear_context() outMichael Niedermayer2014-02-221-26/+20
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Fix libswresample compilation with Apple Neon assembler.Reimar Döffinger2014-02-171-2/+2
| | | | Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
* swresample: Add arm&x86 clobber testsMartin Storsjö2014-01-184-0/+63
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Avoid using empty macro arguments.Reimar Döffinger2013-12-311-5/+5
| | | | | | | | | These are not supported by all compilers (gcc 2.95 but also older SPARC compilers, see gcc bug #33304 for example), and there is no real need for them. One use of this feature remains in libavdevice/v4l2.c which can't be replaced quite as easily. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* lavu,lavc,lswr: do not hardcode AV_SAMPLE_FMT_NB value when setting sample ↵Stefano Sabatini2013-12-261-6/+6
| | | | | | | | | | | | format max value The constant may change in libavutil but the library may be compiled against an older version, thus rejecting a value which is otherwise supported by the new libavutil. INT_MAX is used here to denote the max allowed value for a sample format. The opt-test code is changed to provide a valid reference example.
* Add Windows resource file support for shared librariesJames Almer2013-12-052-0/+58
| | | | | | | | | | | | | | | | | | Originally written by James Almer <jamrial@gmail.com> With the following contributions by Timothy Gu <timothygu99@gmail.com> * Use descriptions of libraries from the pkg-config file generation function * Use "FFmpeg Project" as CompanyName (suggested by Alexander Strasser) * Use "FFmpeg" for ProductName as MSDN says "name of the product with which the file is distributed" [1]. * Use FFmpeg's version (N-xxxxx-gxxxxxxx) for ProductVersion per MSDN [1]. * Only build the .rc files when --enable-small is not enabled. [1] http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058.aspx Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: use the internal buffer for resampling the last few samplesMichael Niedermayer2013-12-041-2/+7
| | | | | | | Fixes out of array read Fixes Ticket3193 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* lswr: fix assert failure on unknown layouts.Nicolas George2013-11-031-2/+2
|
* lswr/swresample: convert ocl and icl options to AV_OPT_TYPE_CHANNEL_LAYOUTStefano Sabatini2013-10-173-7/+7
| | | | | Improve interface flexibility. In particular makes it possible to set channel layout through symbolic names using the av_opt_set() interface.
* x86: Fix compilation with nasm on PPC & OS/2Ronald S. Bultje2013-10-082-4/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix example code and doxy indent.Clément Bœsch2013-09-291-2/+2
|
* swresample: replace 2 av_free() by av_freep()Michael Niedermayer2013-09-162-2/+2
| | | | | | avoids leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/rematrix: Fix handling of AV_CH_LAYOUT_STEREO_DOWNMIX outputMichael Niedermayer2013-08-201-3/+5
| | | | | | | | | | Fixes Ticket2859 Note, testcases related to the downmix channels are welcome. (id like to make sure this is working correctly now, as obviously it didnt work before ...) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: clean layouts before checking sanityMichael Niedermayer2013-08-201-1/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: fix negative rematrix volumnsMichael Niedermayer2013-07-221-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: Make rematrix maxvalue user settableMichael Niedermayer2013-07-224-3/+14
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cosmetics: Fix "dont" "wont" "doesnt" typosTimothy Gu2013-06-291-2/+2
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample/x86/audio_convert: add emms to CONVMichael Niedermayer2013-06-181-0/+5
| | | | | | Might fix Ticket1874 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample/rematrix_template: Fix integer overflow in mix8to2Michael Niedermayer2013-06-101-1/+1
| | | | | Fixes: CID1030352 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample/rematrix_template: Fix integer overflow in mix6to2Michael Niedermayer2013-06-101-1/+1
| | | | | Fixes: CID1030351 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: dont treat 32 and 24 as equal in simple copy checkMichael Niedermayer2013-06-051-1/+2
| | | | | | Fixes dithering from 32 to 24 bit Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: set scale for 32->32/24 ditherMichael Niedermayer2013-06-051-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample: set flags & description and add documentation for output_sample_bitsPaul B Mahol2013-06-041-1/+1
| | | | | | Allows users to actually use such option. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* swr: Fix dithering of s16 with SIMDMichael Niedermayer2013-06-041-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add native_simd_oneMichael Niedermayer2013-06-043-0/+7
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swresample/rematrix: add S32 mixing codeMichael Niedermayer2013-06-042-0/+21
| | | | | | Needed for dithering S32 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* wresample/rematrix_template: fix internal typesMichael Niedermayer2013-06-041-7/+7
| | | | | | Should make no difference, but future commits will need it Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/rematrix: use av_calloc()Michael Niedermayer2013-04-151-3/+3
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* buildsys: only include log2_tab per library for shared buildsMichael Niedermayer2013-03-041-1/+1
| | | | | | Fix linking failures with -all_load due to multiple log2_tabs Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
* soxr: libsoxr 0.1.1 supportRob Sykes2013-03-011-0/+4
| | | | | | | Libsoxr 0.1.1 will be out very soon; no changes planned beyond what's currently in git. It includes a couple of fixes (not affecting FFmpeg's current usage) and a minor API change (but remains ABI compatible). Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: make the default of nopts for first_pts actually workMichael Niedermayer2013-02-251-1/+6
| | | | | | Fixes Ticket2210 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: support a seperate output sample bits.Michael Niedermayer2013-02-243-0/+5
| | | | | | This avoids user apps having to mangle dither scale. for pcm24 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: add duplicate cutoff for compatibilityMichael Niedermayer2013-02-241-0/+4
| | | | | | | | Based on commit 50f4337a2fd3b571b38c9475981e36405d1ca1e1 Author: Justin Ruggles <justin.ruggles@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: check channel layouts before using them.Michael Niedermayer2013-02-131-0/+10
| | | | | | | Fixes out of array accesses Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: Dont use floats for S32->S32 when possibleMichael Niedermayer2013-02-041-0/+5
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: reorder init code to make rematrix status available earlierMichael Niedermayer2013-02-041-27/+27
| | | | | | | This also makes some other fields available earlier which may be usefull one day Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr-test: Fix clip to 32bitMichael Niedermayer2013-02-041-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/resample: fix integer overflow, add missing castMichael Niedermayer2013-02-041-1/+1
| | | | | | The effects of this are limited to numeric errors in the output Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/resample: fix filter rounding and cliping for s32Michael Niedermayer2013-02-041-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/ build_filter: use av_calloc() fix buffer overflowMichael Niedermayer2013-01-271-1/+1
| | | | | | | Fixes integer & buffer overflow Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: limit phase_shift to a less insane value.Michael Niedermayer2013-01-271-1/+1
| | | | | | | This prevents potential crashes and out of memory issues if the user manually sets such insane values. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: support first_ptsMichael Niedermayer2013-01-212-1/+12
| | | | | Trolled-by: Daemon404 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix "may be used uninitialized in this function" warningsMichael Niedermayer2013-01-201-1/+2
| | | | | | | The uninitialized use implicates 0 channels, which is unlikely to reach this function but fixed anyway in this commit. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr/dither: fix division by 0Michael Niedermayer2013-01-141-1/+1
| | | | | Found-by: Daemon404 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: fix handling of timestamps that cause multiple drops or silence injectionsMichael Niedermayer2013-01-131-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: limit buffer size for silence injectionMichael Niedermayer2013-01-131-0/+7
| | | | | | This reduces memory usage for unreasonable large silence injections Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: limit buffer size for discarding.Michael Niedermayer2013-01-131-5/+8
| | | | | | | This prevents insane memory usage in case of insane input values. Untested due to lack of a testcase that causes such insane allocation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* swr: move silence buffer to context to avoid per use malloc/freeMichael Niedermayer2013-01-132-9/+9
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
OpenPOWER on IntegriCloud