lavc: add support for filtering packets before decoding