lavd/lavfi: compute and use the used samples buffer size for the output audio packet...