lavc: use AVFrame API properly in ff_reget_buffer()