ffmpeg/libavfilter
Jindřich Makovička 20a8ee3061 af_asyncts: fix compensation and PTS monotonicity
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>
2013-03-22 20:09:34 +01:00
..
x86
Makefile
af_aformat.c
af_amix.c
af_anull.c
af_ashowinfo.c
af_asyncts.c
af_channelmap.c
af_channelsplit.c
af_join.c
af_resample.c
af_volume.c
af_volume.h
allfilters.c
asink_anullsink.c
asrc_anullsrc.c
audio.c
audio.h
avfilter.c
avfilter.h
avfiltergraph.c
avfiltergraph.h
buffer.c
buffersink.c
buffersink.h
buffersrc.c
buffersrc.h
drawutils.c
drawutils.h
fifo.c
filtfmts.c
formats.c
formats.h
gradfun.h
graphparser.c
internal.h
libavfilter.v
split.c
version.h
vf_aspect.c
vf_blackframe.c
vf_boxblur.c
vf_copy.c
vf_crop.c
vf_cropdetect.c
vf_delogo.c
vf_drawbox.c
vf_drawtext.c
vf_fade.c
vf_fieldorder.c
vf_format.c
vf_fps.c
vf_frei0r.c
vf_gradfun.c
vf_hflip.c
vf_hqdn3d.c
vf_hqdn3d.h
vf_libopencv.c
vf_lut.c
vf_null.c
vf_overlay.c
vf_pad.c
vf_pixdesctest.c
vf_scale.c
vf_select.c
vf_setpts.c
vf_settb.c
vf_showinfo.c
vf_transpose.c
vf_unsharp.c
vf_vflip.c
vf_yadif.c
video.c
video.h
vsink_nullsink.c
vsrc_color.c
vsrc_movie.c
vsrc_nullsrc.c
vsrc_testsrc.c
yadif.h