summaryrefslogtreecommitdiff
path: root/libavfilter/af_asyncts.c
Commit message (Collapse)AuthorAge
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-23
|
* lavfi: do not export the filters from shared objectsAnton Khirnov2013-10-28
|
* af_asyncts: fix offset calculationAnton Khirnov2013-05-10
| | | | | | | delta is in samples, not bytes. Also the sample format is not guaranteed to be planar. CC:libav-stable@libav.org
* avfilter: Add av_cold attributes to init/uninit functionsDiego Biurrun2013-05-04
|
* lavfi: remove now unused args parameter from AVFilter.initAnton Khirnov2013-04-09
|
* af_asyncts: switch to an AVOptions-based system.Anton Khirnov2013-04-09
|
* af_asyncts: fix compensation and PTS monotonicityJindřich Makovička2013-03-22
| | | | | | | | | | | | | | | | | | | | | | | | This patch improves af_asyncts behavior on streams with bogus PTS, which are either non-monotonic, or contain PTS jitter, and trigger the non-monotonicity error. With this patch, af_asyncts is able to correct these streams and avoid the error. Firstly, it fixes resample compensation calculation by supplying proper units to avresample_set_compensation (sample count per second instead of sample count per some arbitrary frame size). Also, the calculation of the compensation itself is fixed - delta is proportional to an adjustment of the compensation, not the compensation itself. Ideally, the compensation should converge to a value that keeps delta at zero. To be able to deal with sources with PTS jitter even without resampling, small PTS errors are adjusted, so the output frames do not overlap. Finally, one more monotonicity check is added. The FATE reference changes because now there is 8 less samples of silence because of the pts jitter. Signed-off-by: Jindřich Makovička <makovick@gmail.com>
* lavfi: switch to AVFrame.Anton Khirnov2013-03-08
| | | | | Deprecate AVFilterBuffer/AVFilterBufferRef and everything related to it and use AVFrame instead.
* asyncts: ignore min_delta only if first_pts is setJustin Ruggles2012-12-13
|
* asyncts: merge two conditionsJustin Ruggles2012-12-13
|
* asyncts: cosmetics: reindentJustin Ruggles2012-12-13
|
* asyncts: fix the asyncts behavior when using the first_pts optionJustin Ruggles2012-12-13
| | | | | Currently it will do padding, but it does not properly handle start-of-stream trimming as documented.
* asyncts: use clipped delta value when setting resample compensationJustin Ruggles2012-12-13
| | | | | The max_comp option is supposed to limit maximum compensation, but currently the clipped value is not actually used.
* asyncts: fix flushing of final samples at EOFJustin Ruggles2012-12-13
|
* 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>
* 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.
* af_asyncts: check return value from lavr when flushing.Anton Khirnov2012-09-07
| | | | | Fixes an infinite loop on flush when avresample_get_delay() still reports some samples but avresample_convert() doesn't return any data.
* avopt: Explicitly store float/double option defaults in .dblMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* AVOptions: store defaults for INT64 options in int64 union member.Anton Khirnov2012-08-24
| | | | | Double does not have enough precision to represent all int64 numbers exactly.
* Don't include common.h from avutil.hMartin Storsjö2012-08-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* af_asyncts: avoid overflow in out_size with large delta valuesJustin Ruggles2012-07-29
|
* af_asyncts: add first_pts optionJustin Ruggles2012-07-29
| | | | | | This allows for padding/trimming at the start of stream. By default, no assumption is made about the first frame's expected pts, so no padding or trimming is done.
* lavfi: add error handling to filter_samples().Anton Khirnov2012-07-09
|
* af_asyncts: fix request_frame() behavior.Anton Khirnov2012-07-09
| | | | | Make sure that an output frame has really been produced before returning 0.
* lavfi: remove 'opaque' parameter from AVFilter.init()Anton Khirnov2012-06-26
| | | | | | It is not used in any filters currently and is inherently evil. If passing binary data to filters is required in the future, it should be done with some AVOptions-based system.
* 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.
* asyncts: reset delta to 0 when it's not used.Anton Khirnov2012-05-22
| | | | Fixes an invalid write.
* lavfi: add asyncts filter.Anton Khirnov2012-05-14