resample: Avoid off-by-1 errors in PTS calcs.
authorTimothy B. Terriberry <tterribe@xiph.org>
Tue, 14 Oct 2014 00:46:00 +0000 (17:46 -0700)
committerAnton Khirnov <anton@khirnov.net>
Sat, 18 Oct 2014 03:01:59 +0000 (05:01 +0200)
commit6cbbf0592f4f3940aac7f687850d1b726a2ea836
tree1d886f6d575d521535abc7301f914a9d06873c3a
parentfb238f8230c1b0314985482207add548c68f83cf
resample: Avoid off-by-1 errors in PTS calcs.

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>
libavfilter/af_resample.c