afifo: fix request_samples on the last frame in certain cases
authorAnton Khirnov <anton@khirnov.net>
Tue, 16 Apr 2013 19:53:56 +0000 (21:53 +0200)
committerDiego Biurrun <diego@biurrun.de>
Mon, 22 Apr 2013 00:29:56 +0000 (02:29 +0200)
commit9bfc6e02bae9de354fb9ba09a8a140e83eeadf7d
tree126d6b564f74ea63eaf472ed2a2cc4c69df52c8d
parentb845f5e97b655de0a191f736594777fec9754cf5
afifo: fix request_samples on the last frame in certain cases

The current code can fail to return the last frame if it contains
exactly the requested number of samples.

Fixes the join filter test, which previously did not include the last
408 samples in most cases.

CC:libav-stable@libav.org

Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavfilter/fifo.c
tests/fate/filter-audio.mak