summaryrefslogtreecommitdiff
path: root/libavfilter/af_resample.c
Commit message (Collapse)AuthorAge
* avfilter/all: propagate errors of functions from avfilter/formatsGanesh Ajjanagadde2015-10-14
| | | | | | | | | | | | | | | | | | Many of the functions from avfilter/formats can return errors, usually AVERROR(ENOMEM). This propagates the return values. All of these were found by using av_warn_unused_result, demonstrating its utility. Tested with FATE. I am least sure of the changes to avfilter/filtergraph, since I don't know what/how reduce_format is intended to behave and how it should react to errors. Fixes: CID 1325680, 1325679, 1325678. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Previous version Reviewed-by: Nicolas George <george@nsup.org> Previous version Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* Merge commit '6b15874fc2c3f565732201f7907ae1112727d6ae'Michael Niedermayer2015-07-19
|\ | | | | | | | | | | | | * commit '6b15874fc2c3f565732201f7907ae1112727d6ae': af_resample: do not touch the timestamps if we are not resampling Merged-by: Michael Niedermayer <michael@niedermayer.cc>
| * af_resample: do not touch the timestamps if we are not resamplingAnton Khirnov2015-07-19
| | | | | | | | | | | | | | | | | | This filter currently assumes that the input audio is continuous and does some timestamps manipulation based on this assumption. This is unnecessary if we are only converting the channel layout or the sample format, without resampling. In such a case, just leave the timestamps as they are.
* | Merge commit 'c060d046aa2f89c0e601a2dcfbce53f0e36cf498'Michael Niedermayer2015-06-21
|\| | | | | | | | | | | | | * commit 'c060d046aa2f89c0e601a2dcfbce53f0e36cf498': af_resample: Set the number of samples in the last frame Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * af_resample: Set the number of samples in the last frameLuca Barbato2015-06-20
| | | | | | | | | | | | Otherwise trailing zeroes would appear. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '0d989dbfc4bc5bc1d563e967449116a7a9865258'Michael Niedermayer2014-10-18
|\| | | | | | | | | | | | | * commit '0d989dbfc4bc5bc1d563e967449116a7a9865258': af_resample: check av_opt_set_dict return value Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * af_resample: check av_opt_set_dict return valueVittorio Giovara2014-10-18
| | | | | | | | | | CC: libav-stable@libav.org Bug-Id: CID 1087076
* | Merge commit '6cbbf0592f4f3940aac7f687850d1b726a2ea836'Michael Niedermayer2014-10-18
|\| | | | | | | | | | | | | * commit '6cbbf0592f4f3940aac7f687850d1b726a2ea836': resample: Avoid off-by-1 errors in PTS calcs. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * resample: Avoid off-by-1 errors in PTS calcs.Timothy B. Terriberry2014-10-18
| | | | | | | | | | | | | | | | | | | | | | The rounding used in the PTS calculations in filter_frame() does not actually match the number of samples output by the resampler. This leads to off-by-1 errors in the timestamps indicating gaps and underruns, even when the input timestamps are all contiguous. Bug-Id: 753 Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | Merge commit 'ad0fe2f4012031c47268f14b9835088c488e1998'Michael Niedermayer2014-05-29
|\| | | | | | | | | | | | | * commit 'ad0fe2f4012031c47268f14b9835088c488e1998': af_resample: Use avresample_get_out_samples Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * af_resample: Use avresample_get_out_samplesLuca Barbato2014-05-28
| |
* | Merge commit 'dcc7e4bf1d0913123bfafbc58bf47bd41dd5848d'Michael Niedermayer2014-02-24
|\| | | | | | | | | | | | | * commit 'dcc7e4bf1d0913123bfafbc58bf47bd41dd5848d': af_resample: preserve frame properties Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * af_resample: preserve frame propertiesAnton Khirnov2014-02-24
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2013-10-29
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: lavfi: do not export the filters from shared objects Conflicts: libavfilter/af_amix.c libavfilter/af_anull.c libavfilter/asrc_anullsrc.c libavfilter/f_select.c libavfilter/f_settb.c libavfilter/split.c libavfilter/src_movie.c libavfilter/vf_aspect.c libavfilter/vf_blackframe.c libavfilter/vf_colorbalance.c libavfilter/vf_copy.c libavfilter/vf_crop.c libavfilter/vf_cropdetect.c libavfilter/vf_drawbox.c libavfilter/vf_format.c libavfilter/vf_framestep.c libavfilter/vf_frei0r.c libavfilter/vf_hflip.c libavfilter/vf_libopencv.c libavfilter/vf_lut.c libavfilter/vf_null.c libavfilter/vf_overlay.c libavfilter/vf_scale.c libavfilter/vf_transpose.c libavfilter/vf_unsharp.c libavfilter/vf_vflip.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * lavfi: do not export the filters from shared objectsAnton Khirnov2013-10-28
| |
* | avfilter: various cosmeticsPaul B Mahol2013-09-12
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Reinstate proper FFmpeg license for all files.Thilo Borgmann2013-08-30
|/
* af_resample: switch to an AVOptions-based system.Anton Khirnov2013-04-09
|
* lavfi: switch to AVFrame.Anton Khirnov2013-03-08
| | | | | Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it and use AVFrame instead.
* lavfi: connect libavresample options to af_resample via AVFilterGraphJustin Ruggles2013-02-23
|
* lavfi: merge start_frame/draw_slice/end_frameAnton Khirnov2012-11-28
| | | | | Any alleged performance benefits gained from the split are purely mythological and do not justify added code complexity.
* lavfi: convert input/ouput list compound literals to named objectsMans Rullgard2012-10-10
| | | | | | | A number of compilers, for example those from TI and IBM, choke on these initialisers. The current style is also quite ugly. Signed-off-by: Mans Rullgard <mans@mansr.com>
* af_resample: unref out_buf when avresample_convert returns 0Janne Grunau2012-10-09
| | | | Fixes CID732273.
* af_resample: avoid conversion of identical sample formats for 1 channelJustin Ruggles2012-10-07
| | | | | When there is only 1 channel, the planar and interleaved formats of the same data type should be treated as identical.
* lavr: change the type of the data buffers to uint8_t**.Anton Khirnov2012-10-05
| | | | | | This is more consistent with what the rest of Libav does. This breaks API.
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavfi: add error handling to filter_samples().Anton Khirnov2012-07-09
|
* af_resample: fix request_frame() behavior.Anton Khirnov2012-07-09
| | | | | Make sure that an output frame has really been produced before returning 0.
* lavr: Use AV_SAMPLE_FMT_NONE to auto-select the internal sample formatJustin Ruggles2012-07-08
| | | | Also make this the default value.
* lavfi: remove disabled FF_API_SAMPLERATE64 cruftAnton Khirnov2012-06-26
|
* af_resample: fix format modifier in debug string for FF_API_SAMPLERATE64Janne Grunau2012-06-15
|
* lavfi: remove request/poll and drawing functions from public API on next bumpAnton Khirnov2012-06-05
| | | | | They are only useful inside filters and we don't allow user filters for now.
* lavfi: make formats API private on next bump.Anton Khirnov2012-06-05
| | | | | It is only useful inside filters and we don't allow user filters for now.
* af_resample: remove an extra space in the log outputJustin Ruggles2012-05-21
|
* lavfi: add channel layout/sample rate negotiation.Anton Khirnov2012-05-14
|
* lavfi: add lavr-based audio resampling filter.Anton Khirnov2012-05-12