AvInputStream: use std::queue instead of std::vector for stream cache

Following PR #14