lavc: factorize ff_{thread_,re,}get_buffer error messages.