Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-09-20Replace all occurences of av_mallocz_array() by av_calloc()Andreas Rheinhardt
They do the same. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2020-01-07Silence "string-plus-int" warning shown by clang.Carl Eugen Hoyos
libswscale/utils.c:89:42: warning: adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]
2019-05-26swresample/swresample: check for invalid sample ratesPaul B Mahol
2018-07-26swresample/swresample: Fix input channel count in resample_first computationMichael Niedermayer
Found-by: Marcin Gorzel <gorzel@google.com> Reviewed-by: Marcin Gorzel <gorzel@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-04-07swresample/swresample: Fix for seg fault in swr_convert_internal() -> ↵Hendrik Schreiber
sum2_float during dithering. Removed +len1 in call to s->mix_2_1_f() as I found no logical explanation for it. After removal, problem was gone. Signed-off-by: Hendrik Schreiber <hs@tagtraum.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-10-28lswr/swresample: Mention the actually supported formats when erroring out.Carl Eugen Hoyos
Fixes ticket #6779.
2017-03-18swresample/swresample: do not use s32p internally by default when resamplingMuhammad Faiz
use fltp when doing s32 -> s32 resampling because s32p has no simd optimization benchmark: old 17.913s new 7.584s (use fma3) Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2017-03-12swresample/swresample: do not reset tsf on swr_alloc_set_optsMuhammad Faiz
so tsf option in aresample will have effect previously tsf/internal_sample_format had no effect fate is updated s32p previously used fltp internally dblp previously used fltp/dblp internally Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2016-12-10swresample/swresample: Check count before memcpy()Michael Niedermayer
Fixes undefined operation Fixes part of 668007-media Found-by: Matt Wolenetz <wolenetz@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-18swresample: add int64 sample formatPaul B Mahol
2016-08-18swresample: Skip over dither steps if dithering scale is 0Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-08-18swresample: move dither init upMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-06-13swresample: add exact_rational optionMuhammad Faiz
give high quality resampling as good as with linear_interp=on as fast as without linear_interp=on tested visually with ffplay ffplay -f lavfi "aevalsrc='sin(10000*t*t)', aresample=osr=48000, showcqt=gamma=5" ffplay -f lavfi "aevalsrc='sin(10000*t*t)', aresample=osr=48000:linear_interp=on, showcqt=gamma=5" ffplay -f lavfi "aevalsrc='sin(10000*t*t)', aresample=osr=48000:exact_rational=on, showcqt=gamma=5" slightly speed improvement for fair comparison with -cpuflags 0 audio.wav is ~ 1 hour 44100 stereo 16bit wav file ffmpeg -i audio.wav -af aresample=osr=48000 -f null - old new real 13.498s 13.121s user 13.364s 12.987s sys 0.131s 0.129s linear_interp=on old new real 23.035s 23.050s user 22.907s 22.917s sys 0.119s 0.125s exact_rational=on real 12.418s user 12.298s sys 0.114s possibility to decrease memory usage if soft compensation is ignored Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2016-03-22swresample/swresample: Remove "less than" comparissions of enumsMichael Niedermayer
Found-by: wm4 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-09-03swresample/swresample: Fix integer overflow in seed calculationMichael Niedermayer
Fixes CID1322333 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-06-22swr: Remember previously set int_sample_format from userMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-22swresample/swresample: Clear delayed_samples_fixup in clear_context()Michael Niedermayer
This probably makes no difference but its more proper Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-21swresample/swresample: Print used int_sample_fmtMichael Niedermayer
Suggested-by: wm4 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-21swresample: Choose 16bit internally only if input and output is 16bit or lessMichael Niedermayer
or if no rematrix and no resampling is performed and the input is 16bit note reampling and rematrix itself always use more than 16bit internally the "internal" sampling format is the format between these steps Its unlikely the difference from this commit is audible in any case unless there is some bug either before or after the change. but multiple people prefer this and it slightly improves the precission of computations. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-08swr: Fix ASSERT_LEVEL warningMichael Niedermayer
Found-by: cehoyos Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-06swresample: fix initilaize/initialize typoClément Bœsch
2015-06-04swresample/swresample: Cleanup on init failure.Michael Niedermayer
This avoids leaks if the user doest call swr_close() after a failed init Found-by: James Almer <jamrial@gmail.com> Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-04swresample: Add swr_get_out_samples()Michael Niedermayer
Previous version reviewed-by: Pavel Koshevoy <pkoshevoy@gmail.com> Previous version reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-03swresample/dither: check memory allocationGanesh Ajjanagadde
check memory allocation in swri_get_dither() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-03swresample: Check the return value of resampler->init()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-05-13swr: fix alignment issue caused by 8ch sse functionsRainer Hochecker
Fix crash when doing 8 ch conversion from apps compiled with MSVS Thanks to Ronald for giving this hint: https://ffmpeg.org/pipermail/ffmpeg-devel/2015-May/173049.html Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-04-12swresample: Check channel layouts and channels against each other and print ↵Michael Niedermayer
human readable error messages Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-04-12swresample: Allow reinitialization without ever setting channel layoutsMichael Niedermayer
2015-04-12swresample: Allow reinitialization without ever setting channel countsMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-03-31swresample/swresample: Use av_mallocz_array()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-02-27swresample: Add prefix to soxr_resamplerMichael Niedermayer
also move declaration to header Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-12-19Add FFMPEG_VERSION into the binary libsMichael Niedermayer
This simplifies identifying from which revision a binary of a lib came from Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-11-04swresample: Fix swr_drop_output so it does not flush the buffersMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-10-16swresample: do not put multiple statements in one lineMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-10-06swresample/swresample: replace always true if() by av_assert0()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-10-06swresample/swresample: fix sample drop loop end conditionMichael Niedermayer
Fixes Ticket3985 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-08-11swresample: check av_opt_set for failure in swr_alloc_set_opts()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-08-04swresample/swresample: Treat mono as planarMichael Niedermayer
This might in some cases improve performance. Idea from: fbc0b8659967ea54a8472b5f795270d38bb085dd Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-07-06swresample: split option table to a separate fileTimothy Gu
Signed-off-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-06-14swr: handle initial negative sample index outside DSP function.Ronald S. Bultje
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-05-15swresample: swr_close()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-02-24swr: check that the context for swr_convert() has been initializedMichael Niedermayer
Reviewed-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-02-24swresample: add swr_is_initialized()Michael Niedermayer
Idea-from/based-on: 7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731 Reviewed-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2014-02-23swresample: factorize clear_context() outMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-12-26lavu,lavc,lswr: do not hardcode AV_SAMPLE_FMT_NB value when setting sample ↵Stefano Sabatini
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.
2013-12-04swresample: use the internal buffer for resampling the last few samplesMichael Niedermayer
Fixes out of array read Fixes Ticket3193 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-10-17lswr/swresample: convert ocl and icl options to AV_OPT_TYPE_CHANNEL_LAYOUTStefano Sabatini
Improve interface flexibility. In particular makes it possible to set channel layout through symbolic names using the av_opt_set() interface.
2013-09-17swresample: replace 2 av_free() by av_freep()Michael Niedermayer
avoids leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-07-22swresample: Make rematrix maxvalue user settableMichael Niedermayer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2013-06-29cosmetics: Fix "dont" "wont" "doesnt" typosTimothy Gu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>